aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/foiltex
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/foiltex')
-rw-r--r--textproc/foiltex/pkg-install6
1 files changed, 4 insertions, 2 deletions
diff --git a/textproc/foiltex/pkg-install b/textproc/foiltex/pkg-install
index a97a81c62211..09c6d60ec27d 100644
--- a/textproc/foiltex/pkg-install
+++ b/textproc/foiltex/pkg-install
@@ -1,11 +1,13 @@
#!/bin/sh
-[ -z "${LOCALBASE}" ] && LOCALBASE=/usr/local
-
if [ "$2" = "POST-INSTALL" ]; then
echo "Updating content cache to let LaTeX know about the new style files:"
if [ -x ${LOCALBASE}/bin/mktexlsr ]; then
${LOCALBASE}/bin/mktexlsr
+ elif [ -x ${PKG_PREFIX}/bin/mktexlsr ]; then
+ ${PKG_PREFIX}/bin/mktexlsr
+ elif [ -x /usr/local/bin/mktexlsr ]; then
+ /usr/local/bin/mktexlsr
else
echo "Could not find mktexlsr. Please run it manually to update"
echo "LaTeX's content cache, or you won't be able to use the"