aboutsummaryrefslogtreecommitdiff
path: root/audio/distrho-mini-series/distrho-mini-series.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-06-28 16:54:26 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-08 16:41:59 +0700
commit0b8b09292977c121aef850c6790d9ba043bd89e5 (patch)
tree11d93c399542d14de5bbc8217b6d6ac7a75fdc08 /audio/distrho-mini-series/distrho-mini-series.SlackBuild
parent525da981b91367773a267dcd0ec42d124967e6a5 (diff)
audio/distrho-mini-series: Fix .so perms, support ARCH=i686.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/distrho-mini-series/distrho-mini-series.SlackBuild')
-rw-r--r--audio/distrho-mini-series/distrho-mini-series.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/audio/distrho-mini-series/distrho-mini-series.SlackBuild b/audio/distrho-mini-series/distrho-mini-series.SlackBuild
index fc812aaf60a5e..9364c259d4b7f 100644
--- a/audio/distrho-mini-series/distrho-mini-series.SlackBuild
+++ b/audio/distrho-mini-series/distrho-mini-series.SlackBuild
@@ -8,11 +8,16 @@
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
+# 20230628 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - install shared libs with +x permission.
+# - support ARCH=i686 in the environment.
+# - indent .info file.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=distrho-mini-series
VERSION=${VERSION:-1.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -24,9 +29,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
@@ -36,7 +38,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
+if [ "$ARCH" = "i586" -o "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
LIBDIRMARK="32"
elif [ "$ARCH" = "x86_64" ]; then
@@ -61,9 +63,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 \
+ -o -perm 511 \) -exec chmod 755 {} + \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
# create destination directories
mkdir -p "$PKG/usr/lib${LIBDIRSUFFIX}/lv2"
@@ -89,6 +91,9 @@ for i in ./*-linux"${LIBDIRMARK}"bit; do
[[ "$VST" ]] || cp -rf $i/*-vst.so "$PKG/usr/lib${LIBDIRSUFFIX}/vst"
done
+# 20230628 bkw: shared libs are supposed to be +x
+find $PKG -name '*.so' -exec chmod 755 {} +
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc