From 133312d5b4bbb4a5ae59e245e4f8aea7fefa9b93 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 30 Oct 2014 21:18:23 +0700 Subject: network/museek+: Update script. Signed-off-by: Willy Sudiarto Raharjo --- network/museek+/museek+.SlackBuild | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'network') diff --git a/network/museek+/museek+.SlackBuild b/network/museek+/museek+.SlackBuild index 0bb6961166..b93176f16d 100644 --- a/network/museek+/museek+.SlackBuild +++ b/network/museek+/museek+.SlackBuild @@ -4,8 +4,8 @@ # Written by Iskar Enev # Currently maintained by B. Watson -PKGNAME=museek+ -VERSION=0.2 +PRGNAM=museek+ +VERSION=${VERSION:-0.2} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} @@ -19,7 +19,7 @@ fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PKGNAME +PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then @@ -41,9 +41,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PKGNAME-$VERSION -tar xvf $CWD/$PKGNAME-$VERSION.tar.bz2 -cd $PKGNAME-$VERSION +rm -rf $PRGNAM-$VERSION +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 \ @@ -75,16 +75,16 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) -mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ COPYING CREDITS FILES LICENSE README TODO INSTALL \ - $PKG/usr/doc/$PKGNAME-$VERSION -cat $CWD/$PKGNAME.SlackBuild > $PKG/usr/doc/$PKGNAME-$VERSION/$PKGNAME.SlackBuild -cat $CWD/rc.museekd > $PKG/usr/doc/$PKGNAME-$VERSION/rc.museekd.new + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/rc.museekd > $PKG/usr/doc/$PRGNAM-$VERSION/rc.museekd.new mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3