summaryrefslogtreecommitdiff
path: root/haskell/haskell-HTTP/haskell-HTTP.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2018-10-26 10:15:46 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-10 07:47:02 +0700
commit2ac1af0a0d548061aee512100fa52bb49d148c60 (patch)
tree6ede46fd4f98e7b24cd62478693066dc5639306c /haskell/haskell-HTTP/haskell-HTTP.SlackBuild
parentefcae03d0296322ee2f46b84ad76906bd5de91ca (diff)
downloadslackbuilds-2ac1af0a0d548061aee512100fa52bb49d148c60.tar.gz
haskell/haskell-HTTP: Updated for version 4000.3.11.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-HTTP/haskell-HTTP.SlackBuild')
-rw-r--r--haskell/haskell-HTTP/haskell-HTTP.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/haskell/haskell-HTTP/haskell-HTTP.SlackBuild b/haskell/haskell-HTTP/haskell-HTTP.SlackBuild
index 6dfd86ba5b..57ee47cc0d 100644
--- a/haskell/haskell-HTTP/haskell-HTTP.SlackBuild
+++ b/haskell/haskell-HTTP/haskell-HTTP.SlackBuild
@@ -1,8 +1,9 @@
#!/bin/sh
-# Slackware build script for HTTP
+# Slackware build script for haskell-HTTP
# Copyright 2015 Mikko Värri, Finland
+# Updated 2018 David Spencer, Baildon, West Yorkshire, U.K.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=haskell-HTTP
-VERSION=${VERSION:-4000.3.3}
+VERSION=${VERSION:-4000.3.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,7 +34,7 @@ GHC_VERSION=$(ghc --numeric-version)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -44,8 +45,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -68,10 +69,10 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -101,8 +102,8 @@ cp -a CHANGES LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}