aboutsummaryrefslogtreecommitdiff
path: root/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild')
-rw-r--r--audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild b/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild
index c282919130..888b25dd95 100644
--- a/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild
+++ b/audio/swh-plugins-lv2/swh-plugins-lv2.SlackBuild
@@ -6,11 +6,13 @@
# 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}
@@ -24,9 +26,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
@@ -59,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
@@ -72,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