From a47374365689de902679b1c48b47b2c9df60a15c Mon Sep 17 00:00:00 2001 From: Richard Narron Date: Mon, 9 Jun 2014 09:56:41 +0700 Subject: development/regina-rexx: Updated for version 3.8. Signed-off-by: Willy Sudiarto Raharjo --- development/regina-rexx/regina-rexx.SlackBuild | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'development/regina-rexx/regina-rexx.SlackBuild') diff --git a/development/regina-rexx/regina-rexx.SlackBuild b/development/regina-rexx/regina-rexx.SlackBuild index 52310e653e..acde02bf70 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 + 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 -- cgit v1.2.3