diff options
Diffstat (limited to 'audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild')
-rw-r--r-- | audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild b/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild index 87c4b8cdc9..3911ab63fb 100644 --- a/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild +++ b/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild @@ -1,15 +1,20 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for swh-plugins-lv2 -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211203 bkw: BUILD=2, improve README, slack-desc. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=swh-plugins-lv2 VERSION=${VERSION:-1.0.16} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} TARNAME="lv2" @@ -21,7 +26,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -49,11 +58,8 @@ rm -rf $TARNAME-$VERSION tar xvf $CWD/$TARNAME-$VERSION.tar.gz cd $TARNAME-$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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ if [ "${FORCE_SLACK_CFLAGS:-no}" = "yes" ]; then sed -i 's,-O3.*-funroll-loops,$(SLKCFLAGS),' Makefile @@ -62,8 +68,7 @@ fi make PREFIX=/usr SLKCFLAGS="$SLKCFLAGS" make install-system INSTALL_DIR=$PKG/usr/lib$LIBDIRSUFFIX/lv2 -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +strip $PKG/usr/lib*/lv2/*.lv2/*.so mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README $PKG/usr/doc/$PRGNAM-$VERSION @@ -73,4 +78,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |