diff options
Diffstat (limited to 'libraries/libunibreak/libunibreak.SlackBuild')
-rw-r--r-- | libraries/libunibreak/libunibreak.SlackBuild | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/libraries/libunibreak/libunibreak.SlackBuild b/libraries/libunibreak/libunibreak.SlackBuild index bd9760c456..64846a3cbe 100644 --- a/libraries/libunibreak/libunibreak.SlackBuild +++ b/libraries/libunibreak/libunibreak.SlackBuild @@ -1,13 +1,20 @@ #!/bin/bash # Slackware build script for libunibreak -# Maintained as of version 3.0 by slackmart <slackmart@gmail.com> -# Revision date: 2016/09/29 +# Maintained as of version 3.0 by slackmart <email removed> +# Now maintained by B. Watson <yalhcru@gmail.com> +# Original version had no license; now licensed under the WTFPL. See +# http://www.wtfpl.net/txt/copying/ for details. + +# 20211003 bkw: +# - take over maintenance +# - update for v4.3 +# - add HTML docs to package cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libunibreak -VERSION=${VERSION:-3.0} +VERSION=${VERSION:-4.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -20,9 +27,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 @@ -55,13 +59,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz 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 \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -# Use "-j1" to avoid some warnings +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -75,14 +74,12 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-static=no \ --build=$ARCH-slackware-linux -make -j1 LIBDIR=/usr/lib${LIBDIRSUFFIX} -make install LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG - -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 +make +make install-strip DESTDIR=$PKG +rm -f $PKG/usr/lib*/*.la mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $TMP/$PRGNAM-$VERSION/README.md $TMP/$PRGNAM-$VERSION/LICENCE $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS* LICEN* NEWS README* doc/html $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |