diff options
author | Binh Nguyen <binhnguyen@fastmail.fm> | 2012-08-16 22:37:35 +0700 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-21 23:08:25 -0500 |
commit | 675b2df0a80c7fa60b04c307cc74e5614265aae5 (patch) | |
tree | 31a861b551cda2a4e443ddddc2681fd3376bc8a7 /audio/volwheel | |
parent | 613a0ed457d65970826ad0402b18a79cdd360883 (diff) |
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')
-rw-r--r-- | audio/volwheel/volwheel.SlackBuild | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/audio/volwheel/volwheel.SlackBuild b/audio/volwheel/volwheel.SlackBuild index 98b880900a2b7..1374403f73939 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 |