From 675b2df0a80c7fa60b04c307cc74e5614265aae5 Mon Sep 17 00:00:00 2001 From: Binh Nguyen Date: Thu, 16 Aug 2012 22:37:35 +0700 Subject: audio/volwheel: Fixed to build against Perl 5.16.x Signed-off-by: Binh Nguyen Signed-off-by: Robby Workman --- audio/volwheel/volwheel.SlackBuild | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'audio/volwheel') diff --git a/audio/volwheel/volwheel.SlackBuild b/audio/volwheel/volwheel.SlackBuild index 98b880900a2b..1374403f7393 100644 --- a/audio/volwheel/volwheel.SlackBuild +++ b/audio/volwheel/volwheel.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2010-2011 Binh Nguyen +# Copyright 2010-2012 Binh Nguyen # 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 -- cgit v1.2.3