summaryrefslogtreecommitdiffstats
path: root/haskell/haskell-env-locale
diff options
context:
space:
mode:
author David Spencer2018-10-26 11:57:40 +0200
committer Willy Sudiarto Raharjo2018-11-10 01:47:20 +0100
commit73285d6a643da294e11effff14d11e752ddb700a (patch)
treea49e3827d7e8138e85ea0e8b6ccfd1a6177969c0 /haskell/haskell-env-locale
parenta8d21051e0b05b04d336ef21515fae21ad5e6371 (diff)
downloadslackbuilds-73285d6a643da294e11effff14d11e752ddb700a.tar.gz
haskell/haskell-env-locale: Add doinst.sh.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-env-locale')
-rw-r--r--haskell/haskell-env-locale/doinst.sh1
-rw-r--r--haskell/haskell-env-locale/haskell-env-locale.SlackBuild5
2 files changed, 3 insertions, 3 deletions
diff --git a/haskell/haskell-env-locale/doinst.sh b/haskell/haskell-env-locale/doinst.sh
new file mode 100644
index 0000000000..3268c238bf
--- /dev/null
+++ b/haskell/haskell-env-locale/doinst.sh
@@ -0,0 +1 @@
+chroot . /usr/bin/ghc-pkg recache
diff --git a/haskell/haskell-env-locale/haskell-env-locale.SlackBuild b/haskell/haskell-env-locale/haskell-env-locale.SlackBuild
index bcec475dd4..188803ac5d 100644
--- a/haskell/haskell-env-locale/haskell-env-locale.SlackBuild
+++ b/haskell/haskell-env-locale/haskell-env-locale.SlackBuild
@@ -97,13 +97,12 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- LICENSE \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}