summaryrefslogtreecommitdiff
path: root/audio/volwheel/volwheel.SlackBuild
diff options
context:
space:
mode:
authorBinh Nguyen <binhnguyen@fastmail.fm>2012-08-16 22:37:35 +0700
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 23:08:25 -0500
commit675b2df0a80c7fa60b04c307cc74e5614265aae5 (patch)
tree31a861b551cda2a4e443ddddc2681fd3376bc8a7 /audio/volwheel/volwheel.SlackBuild
parent613a0ed457d65970826ad0402b18a79cdd360883 (diff)
downloadslackbuilds-675b2df0a80c7fa60b04c307cc74e5614265aae5.tar.gz
audio/volwheel: Fixed to build against Perl 5.16.x
Signed-off-by: Binh Nguyen <binhnguyen@fastmail.fm> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/volwheel/volwheel.SlackBuild')
-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