diff options
author | Phillip Warner <pc_warner@yahoo.com> | 2010-12-13 19:30:58 -0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-12-17 07:56:46 -0600 |
commit | fc74e6371c2cc7f80104e05c98d64e9cb2c8316b (patch) | |
tree | 52e43c07416ff21f9f4ba17083b5db53a528b192 /audio/pianobar/pianobar.SlackBuild | |
parent | 445b34cf3647da628347b15ea8b1bddbc22866c7 (diff) |
audio/pianobar: Updated for version 2010.11.06.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'audio/pianobar/pianobar.SlackBuild')
-rw-r--r-- | audio/pianobar/pianobar.SlackBuild | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/audio/pianobar/pianobar.SlackBuild b/audio/pianobar/pianobar.SlackBuild index a45fd9b5477f..6f284d1a72e6 100644 --- a/audio/pianobar/pianobar.SlackBuild +++ b/audio/pianobar/pianobar.SlackBuild @@ -4,16 +4,14 @@ # Written by Phillip Warner <pc_warner@yahoo.com> PRGNAM=pianobar -VERSION=${VERSION:-2010.10.07} +VERSION=${VERSION:-2010.11.06} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -52,11 +50,17 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Make sure the CFLAGS is respected +sed -i "s/CFLAGS:=/CFLAGS+=/" Makefile + CFLAGS="$SLKCFLAGS" \ force_arch="$ARCH" \ -make DISABLE_FAAD=1 +gmake DISABLE_FAAD=1 + +gmake install DESTDIR=$PKG PREFIX="/usr" MANDIR="/usr/man" -make install DESTDIR=$PKG PREFIX="/usr" MANDIR="/usr/man" +# Install helper script +install -m 0755 $CWD/pianobarctl $PKG/usr/bin/pianobarctl find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -64,7 +68,11 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING README ChangeLog contrib/config-example \ + $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/example-scripts +cp contrib/*.{sh,rb} $PKG/usr/doc/$PRGNAM-$VERSION/example-scripts +chmod -x $PKG/usr/doc/$PRGNAM-$VERSION/example-scripts/* cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |