summaryrefslogtreecommitdiff
path: root/audio/sunvox/sunvox.SlackBuild
diff options
context:
space:
mode:
authorfuzzix <fuzzix@fuzzix.org>2014-07-22 06:12:02 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-22 06:13:32 +0700
commit26c45280db16b1e17dd59da5a9fa5e74a4ed7c06 (patch)
treeff4110157c5e81668cc03eb000d746c3e4761acb /audio/sunvox/sunvox.SlackBuild
parentba3e352ce54d59b49ab46d8832cbb1122879fbdc (diff)
downloadslackbuilds-26c45280db16b1e17dd59da5a9fa5e74a4ed7c06.tar.gz
audio/sunvox: Updated for version 1.7.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/sunvox/sunvox.SlackBuild')
-rw-r--r--audio/sunvox/sunvox.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/audio/sunvox/sunvox.SlackBuild b/audio/sunvox/sunvox.SlackBuild
index c879a60e22..80d8175240 100644
--- a/audio/sunvox/sunvox.SlackBuild
+++ b/audio/sunvox/sunvox.SlackBuild
@@ -23,15 +23,15 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sunvox
-VERSION=${VERSION:-1.7.4b}
+VERSION=${VERSION:-1.7.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
- arm*) ARCH=arm ; exit 1 ;;
- *) ARCH=$( uname -m ) ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
esac
fi
@@ -55,14 +55,18 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -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 {} \;
BINDIR="$TMP/$PRGNAM/$PRGNAM/linux_x86/"
[ $ARCH == 'x86_64' ] && BINDIR="$TMP/$PRGNAM/$PRGNAM/linux_x86_64/"
[ $ARCH == 'arm' ] && BINDIR="$TMP/$PRGNAM/$PRGNAM/raspberry_pi/"
install -Dm755 $BINDIR/${PRGNAM} $PKG/usr/bin/
-[ $ARCH == 'arm' ] && install -Dm755 $BINDIR/${PRGNAM}_lofi $PKG/usr/bin/
+if [ $ARCH == 'arm' ]; then
+ install -Dm755 $BINDIR/${PRGNAM}_lofi $PKG/usr/bin/
+ install -dm755 $PKG/lib/
+ ln -s ld-linux.so.3 $PKG/lib/ld-linux-armhf.so.3
+fi
install -Dm644 $CWD/sunvox.desktop $PKG/usr/share/applications/
install -Dm644 $CWD/sunvox.png $PKG/usr/share/sunvox/icon/
@@ -73,8 +77,10 @@ for dir in instruments examples docs ; do
find . -type f -exec install -Dm644 {,"$PKG/usr/share/$PRGNAM/${dir}/"}{} \;
done
-ln -s ../share/$PRGNAM/docs/ $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
+mv ../docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -rf $PKG/usr/share/$PRGNAM/docs
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc