libraries/vst3sdk: Fix directory ownership and pc file.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Martin Bångens 2022-07-08 21:25:05 +02:00 committed by Willy Sudiarto Raharjo
parent c95ef72f9a
commit 43e6c70e0b
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=vst3sdk PRGNAM=vst3sdk
VERSION=${VERSION:-3.7.5} VERSION=${VERSION:-3.7.5}
SDK_BUILD=${SDK_BUILD:-_build_44} SDK_BUILD=${SDK_BUILD:-_build_44}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch ARCH=noarch
@ -54,10 +54,9 @@ tar xf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
#handle if its 32bit but this should be in lib64 but lib: is not set mkdir -p $PKG/usr/share/pkgconfig
mkdir -p $PKG/usr/lib/pkgconfig cp $CWD/vst3sdk.pc $PKG/usr/share/pkgconfig/
cp $CWD/vst3sdk.pc $PKG/usr/lib/pkgconfig/ sed -i "s/VERSION/$VERSION_$SDK_BUILD/g" $PKG/usr/share/pkgconfig/vst3sdk.pc
sed -i "s/VERSION/$VERSION_$SDK_BUILD/g" $PKG/usr/lib/pkgconfig/vst3sdk.pc
mkdir -p $PKG/usr/include/vst3sdk mkdir -p $PKG/usr/include/vst3sdk
cp -a base $PKG/usr/include/vst3sdk/ cp -a base $PKG/usr/include/vst3sdk/
@ -78,9 +77,13 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chmod -R 644 $PKG/usr/include/vst3sdk chmod 755 $PKG/usr/include/vst3sdk
chmod -R 644 $PKG/usr/doc/$PRGNAM-$VERSION find $PKG/usr/include/vst3sdk -type d -exec chmod 755 {} +
find $PKG/usr/include/vst3sdk -type f -exec chmod 644 {} +
chmod 755 $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type d -exec chmod 755 {} + find $PKG/usr/doc/$PRGNAM-$VERSION -type d -exec chmod 755 {} +
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} +
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc