aboutsummaryrefslogtreecommitdiff
path: root/haskell/haskell-composition
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2018-10-30 23:12:00 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-10 07:47:13 +0700
commit1a03e1f0470dd3cbebb5f9cecb53b7752735b5e8 (patch)
treefb30eb9c25017f0955c339522533fc2219fb5c90 /haskell/haskell-composition
parentefa6c6284b637c10c3d32cf96d71b3474e0b4636 (diff)
haskell/haskell-composition: Add doinst.sh.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-composition')
-rw-r--r--haskell/haskell-composition/doinst.sh1
-rw-r--r--haskell/haskell-composition/haskell-composition.SlackBuild5
2 files changed, 3 insertions, 3 deletions
diff --git a/haskell/haskell-composition/doinst.sh b/haskell/haskell-composition/doinst.sh
new file mode 100644
index 000000000000..3268c238bf73
--- /dev/null
+++ b/haskell/haskell-composition/doinst.sh
@@ -0,0 +1 @@
+chroot . /usr/bin/ghc-pkg recache
diff --git a/haskell/haskell-composition/haskell-composition.SlackBuild b/haskell/haskell-composition/haskell-composition.SlackBuild
index b43379b429e9..783cce149bcc 100644
--- a/haskell/haskell-composition/haskell-composition.SlackBuild
+++ b/haskell/haskell-composition/haskell-composition.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}