summaryrefslogtreecommitdiff
path: root/audio/lv2core/lv2core.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2011-03-28 11:49:26 +0200
committerRobby Workman <rworkman@slackbuilds.org>2011-03-29 00:07:50 -0500
commitb57faac5515511db7f9a3173b5985e689daa7b85 (patch)
treed66ce2909f5e5effb3b1c1903821f5be3bbfbf9e /audio/lv2core/lv2core.SlackBuild
parent324f78abfcf6d3ca4fc1aca54fd1ac78e26087a9 (diff)
downloadslackbuilds-b57faac5515511db7f9a3173b5985e689daa7b85.tar.gz
audio/lv2core: Updated for version 4.0
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'audio/lv2core/lv2core.SlackBuild')
-rw-r--r--audio/lv2core/lv2core.SlackBuild45
1 files changed, 26 insertions, 19 deletions
diff --git a/audio/lv2core/lv2core.SlackBuild b/audio/lv2core/lv2core.SlackBuild
index 89010f8142..c5e2eb6881 100644
--- a/audio/lv2core/lv2core.SlackBuild
+++ b/audio/lv2core/lv2core.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for lv2core
-# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2011 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,16 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lv2core
-VERSION=${VERSION:-3.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -73,24 +71,11 @@ find . \
./waf configure \
--prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX/
+ --libdir=/usr/lib$LIBDIRSUFFIX
./waf build
./waf install --destdir=$PKG
-if [ "$LIBDIRSUFFIX" != "" ]; then
- sed -i "s,/lib,/lib$LIBDIRSUFFIX," \
- $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc
-fi
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING README \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-
mkdir -p $PKG/etc/profile.d
cat <<EOF > $PKG/etc/profile.d/$PRGNAM.sh
@@ -105,5 +90,27 @@ EOF
chmod 0755 $PKG/etc/profile.d/*
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/lv2
+cd $PKG/usr/lib$LIBDIRSUFFIX/lv2
+ for i in data-access-1.0 dyn-manifest-1.0 event-1.0 instance-access-1.0 \
+ midi-1.0 presets-2.0 ui-2.0 units-5.0 uri-map-1.0; do
+ tar xvf $CWD/lv2-$i.tar.gz
+ done
+ chown -R root:root .
+ find . \
+ \( -perm 777 -o -perm 775 -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 {} \;
+cd -
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}