aboutsummaryrefslogtreecommitdiff
path: root/haskell
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-08-15 19:59:05 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-08-20 10:06:33 +0700
commit1a6e6cfbf21ad497583edc1e19151ca68082a039 (patch)
treeeccd0af9216ff29097324515b3932649a519f248 /haskell
parenta0b4d612463666622fee27140b2f84cf710fe22a (diff)
haskell/haskell-witherable: Fix DOWNLOAD.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'haskell')
-rw-r--r--haskell/haskell-witherable/haskell-witherable.SlackBuild7
-rw-r--r--haskell/haskell-witherable/haskell-witherable.info2
2 files changed, 4 insertions, 5 deletions
diff --git a/haskell/haskell-witherable/haskell-witherable.SlackBuild b/haskell/haskell-witherable/haskell-witherable.SlackBuild
index 5b1f847a037fb..e700e97040efc 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 \
diff --git a/haskell/haskell-witherable/haskell-witherable.info b/haskell/haskell-witherable/haskell-witherable.info
index 9798d343a1a0d..ad0e199254837 100644
--- a/haskell/haskell-witherable/haskell-witherable.info
+++ b/haskell/haskell-witherable/haskell-witherable.info
@@ -2,7 +2,7 @@ PRGNAM="haskell-witherable"
VERSION="0.4.2"
HOMEPAGE="https://hackage.haskell.org/package/witherable"
DOWNLOAD="https://hackage.haskell.org/package/witherable-0.4.2/witherable-0.4.2.tar.gz \
- https://hackage.haskell.org/package/witherable-0.4.2/witherable.cabal"
+ https://hackage.haskell.org/package/witherable-0.4.2/revision/2.cabal"
MD5SUM="c5f0d20fe135ab5fd081401080aa82f8 \
1fec8f7279cfe870ec8d2fb7fdb7d480"
DOWNLOAD_x86_64=""