summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/volwheel/volwheel.SlackBuild21
1 files changed, 18 insertions, 3 deletions
diff --git a/audio/volwheel/volwheel.SlackBuild b/audio/volwheel/volwheel.SlackBuild
index 98b880900a..1374403f73 100644
--- a/audio/volwheel/volwheel.SlackBuild
+++ b/audio/volwheel/volwheel.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2010-2011 Binh Nguyen <binhnguyen@fastmail.fm>
+# Copyright 2010-2012 Binh Nguyen <binhnguyen@fastmail.fm>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,7 @@
PRGNAM=volwheel
VERSION=${VERSION:-0.2.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -47,7 +47,22 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-./install.pl --prefix=/usr --destdir=$PKG
+# The install script no longer works with the new Perl.
+# The following install method was borrowed from Arch:
+# Fix deprecated defined
+sed -i 's/defined(@ARGV)/@ARGV/g' volwheel
+# Fix paths
+sed -i 's#/usr/local#/usr#g' volwheel
+sed -i 's#${prefix}#/usr#g' volwheel
+install -D -m 755 volwheel $PKG/usr/bin/$PRGNAM
+install -d $PKG/usr/lib/$PRGNAM
+install -d $PKG/usr/share/$PRGNAM/icons
+install -m 644 lib/* $PKG/usr/lib/$PRGNAM
+cp -r icons/* $PKG/usr/share/$PRGNAM/icons/
+install -D -m 644 icons/volwheel.svg \
+ $PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg
+install -D -m 644 volwheel.desktop \
+ $PKG/usr/share/applications/volwheel.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION