diff options
Diffstat (limited to 'audio/gmpc/gmpc.SlackBuild')
-rw-r--r-- | audio/gmpc/gmpc.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/audio/gmpc/gmpc.SlackBuild b/audio/gmpc/gmpc.SlackBuild index 962769c113f1..496b3cdd4e7c 100644 --- a/audio/gmpc/gmpc.SlackBuild +++ b/audio/gmpc/gmpc.SlackBuild @@ -3,10 +3,8 @@ # Slackware build script for GMPC # Written by Erik Hanson erik@slackbuilds.org -set -eu - PRGNAM=gmpc -VERSION=${VERSION:-0.15.5.0} +VERSION=${VERSION:-0.17.0} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -24,8 +22,10 @@ elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" fi +set -eu + rm -rf $PKG -mkdir -p $TMP $PKG +mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz @@ -45,14 +45,21 @@ CFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --disable-static \ --enable-configdir \ - --enable-artist-browser + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install +( cd $PKG/usr/man || exit 1 + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |