summaryrefslogtreecommitdiffstats
path: root/haskell/haskell-witherable/haskell-witherable.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'haskell/haskell-witherable/haskell-witherable.SlackBuild')
-rw-r--r--haskell/haskell-witherable/haskell-witherable.SlackBuild7
1 files changed, 3 insertions, 4 deletions
diff --git a/haskell/haskell-witherable/haskell-witherable.SlackBuild b/haskell/haskell-witherable/haskell-witherable.SlackBuild
index 5b1f847a03..e700e97040 100644
--- a/haskell/haskell-witherable/haskell-witherable.SlackBuild
+++ b/haskell/haskell-witherable/haskell-witherable.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for haskell-witherable
# Copyright 2021 Andrew Clemons, Wellington New Zealand
+# Copyright 2022 Andrew Clemons, Tokyo Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,6 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=haskell-witherable
VERSION=${VERSION:-0.4.2}
+CABAL_REVISION=${CABAL_REVISION:-2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -42,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -76,7 +75,7 @@ cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
-cat $CWD/$SRCNAM.cabal > $SRCNAM.cabal
+cat $CWD/$CABAL_REVISION.cabal > $SRCNAM.cabal
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \