summaryrefslogtreecommitdiffstats
path: root/development/re2c/re2c.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/re2c/re2c.SlackBuild')
-rw-r--r--development/re2c/re2c.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/development/re2c/re2c.SlackBuild b/development/re2c/re2c.SlackBuild
index 74c6bc6ada..62ed7ff0ae 100644
--- a/development/re2c/re2c.SlackBuild
+++ b/development/re2c/re2c.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for re2c
# Copyright 2008-2015 LukenShiro, Italy
+# Copyright 2020 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=re2c
-VERSION=${VERSION:-0.16}
+VERSION=${VERSION:-1.3}
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
@@ -41,10 +42,10 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# .html file needs to be manually installed
-DOCFILES="README CHANGELOG doc/loplas.ps"
+DOCFILES="README.md CHANGELOG LICENSE NO_WARRANTY"
-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"
@@ -63,7 +64,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \