summaryrefslogtreecommitdiff
path: root/audio/pianobar
diff options
context:
space:
mode:
Diffstat (limited to 'audio/pianobar')
-rw-r--r--audio/pianobar/Makefile.diff13
-rw-r--r--audio/pianobar/pianobar.SlackBuild12
-rw-r--r--audio/pianobar/pianobar.info8
3 files changed, 24 insertions, 9 deletions
diff --git a/audio/pianobar/Makefile.diff b/audio/pianobar/Makefile.diff
new file mode 100644
index 0000000000..84965d61a2
--- /dev/null
+++ b/audio/pianobar/Makefile.diff
@@ -0,0 +1,13 @@
+--- pianobar-2011.04.27.orig/Makefile 2011-04-27 14:11:06.000000000 -0500
++++ pianobar-2011.04.27/Makefile 2011-05-01 17:11:47.000000000 -0500
+@@ -6,9 +6,8 @@
+ INCDIR:=${PREFIX}/include
+ MANDIR:=${PREFIX}/share/man
+ DYNLINK:=0
+-CFLAGS:=-O2 -DNDEBUG
++CFLAGS+=-std=c99 -O2 -DNDEBUG
+ LDFLAGS:=
+-CC:=c99
+
+ PIANOBAR_DIR=src
+ PIANOBAR_SRC=\
diff --git a/audio/pianobar/pianobar.SlackBuild b/audio/pianobar/pianobar.SlackBuild
index 6f284d1a72..c9b95c8655 100644
--- a/audio/pianobar/pianobar.SlackBuild
+++ b/audio/pianobar/pianobar.SlackBuild
@@ -4,7 +4,7 @@
# Written by Phillip Warner <pc_warner@yahoo.com>
PRGNAM=pianobar
-VERSION=${VERSION:-2010.11.06}
+VERSION=${VERSION:-2011.04.27}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -50,8 +50,8 @@ 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
+# Fix Makefile and make sure the CFLAGS is respected
+patch -p1 < $CWD/Makefile.diff
CFLAGS="$SLKCFLAGS" \
force_arch="$ARCH" \
@@ -68,11 +68,13 @@ 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 contrib/config-example \
+cp -a 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
+cp -a contrib/*.sh contrib/eventcmd-examples/ \
+ $PKG/usr/doc/$PRGNAM-$VERSION/example-scripts
chmod -x $PKG/usr/doc/$PRGNAM-$VERSION/example-scripts/*
+chmod -x $PKG/usr/doc/$PRGNAM-$VERSION/example-scripts/eventcmd-examples/*
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/audio/pianobar/pianobar.info b/audio/pianobar/pianobar.info
index 002bd48aaf..0cb34e7004 100644
--- a/audio/pianobar/pianobar.info
+++ b/audio/pianobar/pianobar.info
@@ -1,10 +1,10 @@
PRGNAM="pianobar"
-VERSION="2010.11.06"
+VERSION="2011.04.27"
HOMEPAGE="http://6xq.net/html/00/17.html"
-DOWNLOAD="http://6xq.net/media/00/16/pianobar-2010.11.06.tar.bz2"
-MD5SUM="9b2ed2828e5b90d40bfda235f350fc65"
+DOWNLOAD="http://6xq.net/media/00/16/pianobar-2011.04.27.tar.bz2"
+MD5SUM="0fa84d8e8a091f82a9fd580d50c0967b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Phillip Warner"
EMAIL="pc_warner@yahoo.com"
-APPROVED="dsomero,Niels Horn"
+APPROVED="dsomero,Niels Horn,Erik Hanson"