From fa30cf97ce124707ed2d6de96a9ff60908cbd7fd Mon Sep 17 00:00:00 2001 From: Luka Novsak Date: Tue, 20 May 2014 19:36:15 +0700 Subject: audio/ncmpc: Updated for version 0.21 + new maintainer. Signed-off-by: Willy Sudiarto Raharjo --- audio/ncmpc/ncmpc.SlackBuild | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'audio/ncmpc/ncmpc.SlackBuild') diff --git a/audio/ncmpc/ncmpc.SlackBuild b/audio/ncmpc/ncmpc.SlackBuild index d88b0b32d9..7993b2d7af 100644 --- a/audio/ncmpc/ncmpc.SlackBuild +++ b/audio/ncmpc/ncmpc.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for ncmpc # Copyright 2006-2010 Andrew Brouwers +# Copyright 2014 Luka Novsak # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ # Modified by the SlackBuilds.org project PRGNAM=ncmpc -VERSION=0.16 +VERSION=${VERSION:-0.21} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -56,12 +57,14 @@ else LIBDIRSUFFIX="" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -74,16 +77,15 @@ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ - --mandir=/usr/man \ - || exit 1 + --mandir=/usr/man -make || exit 1 -make install-strip DESTDIR=$PKG || exit 1 +make +make install-strip DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog NEWS README doc/config.sample \ +cp -a AUTHORS COPYING NEWS README doc/config.sample \ doc/keys.sample doc/ncmpc.lirc $PKG/usr/doc/$PRGNAM-$VERSION rm -rf $PKG/usr/share/{doc,ncmpc} -- cgit v1.2.3