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>
This commit is contained in:
parent
613a0ed457
commit
675b2df0a8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue