development/regina-rexx: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Richard Narron 2015-05-13 07:10:48 +07:00 committed by Willy Sudiarto Raharjo
parent 8219eb5747
commit a6ccd17900

View file

@ -6,7 +6,7 @@
PRGNAM=regina-rexx
VERSION=${VERSION:-3.9.1}
DOCVERSION=${DOCVERSION:-3.9.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
FLAVOR=${FLAVOR:-dynamic} # set FLAVOR=static for a rexx static binary.
@ -52,7 +52,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 {} \;
if [ "${FLAVOR,,*}" = "static" ]; then
if [ "$FLAVOR" = "static" ]; then
mv -f configure configure.orig
sed -e 's/STATIC_LDFLAGS=""/STATIC_LDFLAGS="-static"/' <configure.orig >configure
chmod 744 configure