diff options
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 a45fd9b5477fb..6f284d1a72e66 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 |