diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-04 11:42:32 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-07 08:45:20 +0700 |
commit | 8375315fea11a4dca983708c1f5a0fc483cb8a06 (patch) | |
tree | ca9c9601b75fc4675fe3f986a13cc700c977ac2b /development/bas/bas.SlackBuild | |
parent | d6030887ffbc0d3a85dbe11e96f671011f5720dd (diff) |
development/bas: Updated for version 2.5.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/bas/bas.SlackBuild')
-rw-r--r-- | development/bas/bas.SlackBuild | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/development/bas/bas.SlackBuild b/development/bas/bas.SlackBuild index 4bfa42fa83495..d8d0041b2d534 100644 --- a/development/bas/bas.SlackBuild +++ b/development/bas/bas.SlackBuild @@ -4,10 +4,13 @@ # Written by G. Schoenmakers +# 20220304 bkw: Modified by SlackBuilds.org: update for v2.5, +# change maintainer. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bas -VERSION=${VERSION:-2.4} +VERSION=${VERSION:-2.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -20,9 +23,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -56,9 +56,9 @@ cd $PRGNAM-$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 \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -74,14 +74,14 @@ CXXFLAGS="$SLKCFLAGS" \ make make install -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 +# 20220304 bkw: README recommends doing this, and it doesn't take long: +make check -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +strip $PKG/usr/bin/$PRGNAM +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a INSTALL LICENSE NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE NEWS README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |