diff options
author | Richard Narron <richard@aaazen.com> | 2014-06-09 09:56:41 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-06-12 06:51:48 +0700 |
commit | a47374365689de902679b1c48b47b2c9df60a15c (patch) | |
tree | 91126174b3b797f4c6c39f06c72dce4b84366134 /development/regina-rexx/regina-rexx.SlackBuild | |
parent | a06ae361c8e33cd413bc3b612baf4036c4d3ad01 (diff) |
development/regina-rexx: Updated for version 3.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/regina-rexx/regina-rexx.SlackBuild')
-rw-r--r-- | development/regina-rexx/regina-rexx.SlackBuild | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/development/regina-rexx/regina-rexx.SlackBuild b/development/regina-rexx/regina-rexx.SlackBuild index 52310e653e608..acde02bf70838 100644 --- a/development/regina-rexx/regina-rexx.SlackBuild +++ b/development/regina-rexx/regina-rexx.SlackBuild @@ -4,9 +4,10 @@ # Written by Diogo Leal (diogo@diogoleal.com) PRGNAM=regina-rexx -VERSION=${VERSION:-3.7} +VERSION=${VERSION:-3.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +FLAVOR=${FLAVOR:-dynamic} # set FLAVOR=static for a rexx static binary. SRCNAM=Regina-REXX @@ -47,13 +48,19 @@ 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 {} \; chmod 644 $DOCS +if [ "${FLAVOR,,*}" = "static" ]; then + mv -f configure configure.orig + sed -e 's/STATIC_LDFLAGS=""/STATIC_LDFLAGS="-static"/' <configure.orig >configure + chmod 744 configure +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -68,12 +75,11 @@ CXXFLAGS="$SLKCFLAGS" \ make -j1 make install DESTDIR=$PKG -# Rename the init script to .new and handle it in the doinst.sh -cd $PKG/etc/rc.d/init.d - mv rxstack rxstack.new -cd - +mkdir -p $PKG/etc/rc.d/ +install -m0644 $CWD/rc.rxstack $PKG/etc/rc.d/rc.rxstack.new +rm -f $PKG/etc/rxstack -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |