summaryrefslogtreecommitdiffstats
path: root/development/camlp4/camlp4.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/camlp4/camlp4.SlackBuild')
-rw-r--r--development/camlp4/camlp4.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/development/camlp4/camlp4.SlackBuild b/development/camlp4/camlp4.SlackBuild
index 932c6d73fc..cfd34f6caa 100644
--- a/development/camlp4/camlp4.SlackBuild
+++ b/development/camlp4/camlp4.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for camlp4
-# Copyright 2013 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2013-2019 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=camlp4
-VERSION=${VERSION:-4.03_1}
+VERSION=${VERSION:-4.08_1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,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"
@@ -55,17 +55,15 @@ else
fi
DOCS="CHANGES* LICENSE"
-TVERSION=$(echo $VERSION | tr _ +)
-CVERSION=$(echo $VERSION | tr _ -)
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$CVERSION
-tar xvf $CWD/$PRGNAM-$CVERSION.tar.?z* || tar xvf $CWD/$TVERSION.tar.?z*
-cd $PRGNAM-$CVERSION
+rm -rf $PRGNAM-$(echo $VERSION | tr _ -)
+tar xvf $CWD/$PRGNAM-$(echo $VERSION | tr _ -).tar.?z*
+cd $PRGNAM-$(echo $VERSION | tr _ -)
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \