audio/carla: Fix shared lib permissions.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-07-01 16:05:54 -04:00 committed by Willy Sudiarto Raharjo
parent 6acb0d6e81
commit e68e52bbcc
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -3,11 +3,15 @@
#
# Michales (clavisound) Michaloudes korgie@gmail.com <2018-2022>
# 20230701 bkw: Modified by SlackBuilds.org, BUILD=2:
# - +x permissions for shared libs.
# - rm INSTALL.md (compile instructions) from doc dir.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=carla
VERSION=${VERSION:-2.5.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -21,9 +25,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
@ -69,11 +70,12 @@ make install PREFIX=/usr 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
INSTALL.md README.md doc/* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG -type f -a -name '*.so' -exec chmod 755 {} +
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
cp -a README.md doc/* $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc