summaryrefslogtreecommitdiff
path: root/development/fossil/fossil.SlackBuild
diff options
context:
space:
mode:
authorAndy Goth <andrew.m.goth@gmail.com>2020-03-20 19:35:55 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-03-20 19:35:55 +0700
commitdf739fea7a7dd09b248a8a3a399185fee24bdbe1 (patch)
tree541b23832e2194f9071bc09b1a5153f41241d4ad /development/fossil/fossil.SlackBuild
parentf079f7fc57bec08267fc712a70a79e235a5e3f23 (diff)
downloadslackbuilds-df739fea7a7dd09b248a8a3a399185fee24bdbe1.tar.gz
development/fossil: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/fossil/fossil.SlackBuild')
-rw-r--r--development/fossil/fossil.SlackBuild20
1 files changed, 14 insertions, 6 deletions
diff --git a/development/fossil/fossil.SlackBuild b/development/fossil/fossil.SlackBuild
index 060d3ef219..26f0537af5 100644
--- a/development/fossil/fossil.SlackBuild
+++ b/development/fossil/fossil.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for fossil
-# Copyright 2019 Andy Goth <andrew.m.goth@gmail.com>
+# Copyright 2020 Andy Goth <andrew.m.goth@gmail.com> USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -56,12 +56,21 @@ fi
set -e
+FILE=$CWD/$PRGNAM-src-$VERSION.tar.gz
+DIR=$PRGNAM-$VERSION
+
+if [ ! -e "$FILE" ]; then
+ FILE=$CWD/$PRGNAM-src.tar.gz
+ DIR=$PRGNAM-src
+ VERSION=$( tar -xOf $FILE $DIR/manifest | sed '/^D/!d;s/\..*//;s/[-:D ]//g' )
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-src-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $DIR
+tar xvf $FILE
+cd $DIR
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,8 +78,7 @@ find -L . \
\( -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 \
+CFLAGS=${CFLAGS:-$SLKCFLAGS} \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \