summaryrefslogtreecommitdiffstats
path: root/audio/distrho-mini-series/distrho-mini-series.SlackBuild
diff options
context:
space:
mode:
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 fc812aaf60..9364c259d4 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