diff options
Diffstat (limited to 'development/regina-rexx/regina-rexx.SlackBuild')
-rw-r--r-- | development/regina-rexx/regina-rexx.SlackBuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/development/regina-rexx/regina-rexx.SlackBuild b/development/regina-rexx/regina-rexx.SlackBuild index b3fc40e46b..6ba9eeb147 100644 --- a/development/regina-rexx/regina-rexx.SlackBuild +++ b/development/regina-rexx/regina-rexx.SlackBuild @@ -5,7 +5,8 @@ PRGNAM=regina-rexx VERSION=${VERSION:-3.9.0} -BUILD=${BUILD:-1} +DOCVERSION=${DOCVERSION:-3.8.2} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} FLAVOR=${FLAVOR:-dynamic} # set FLAVOR=static for a rexx static binary. @@ -24,8 +25,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="README* HACKERS.txt " - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -36,7 +35,7 @@ elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" fi - +set -x set -e rm -rf $PKG @@ -53,8 +52,6 @@ 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 {} \; -chmod 644 $DOCS - if [ "${FLAVOR,,*}" = "static" ]; then mv -f configure configure.orig sed -e 's/STATIC_LDFLAGS=""/STATIC_LDFLAGS="-static"/' <configure.orig >configure @@ -82,9 +79,11 @@ rm -f $PKG/etc/rxstack 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 -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/regina-rexx.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +install -m0644 $CWD/regutil.pdf $PKG/usr/doc/$PRGNAM-$VERSION/regutil-$DOCVERSION.pdf +install -m0644 $CWD/regina.pdf $PKG/usr/doc/$PRGNAM-$VERSION/regina-$DOCVERSION.pdf +install -m0644 README* HACKERS.txt $PKG/usr/doc/$PRGNAM-$VERSION +install -m0644 $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |