aboutsummaryrefslogtreecommitdiff
path: root/network/museek+
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-10-30 21:18:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-10-30 21:18:23 +0700
commit133312d5b4bbb4a5ae59e245e4f8aea7fefa9b93 (patch)
tree3ec4572a6f56815ad6f8b61c80295fac4e19cc8c /network/museek+
parentc601158e83c1aea07a63daab075e2acec4c8bac5 (diff)
network/museek+: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/museek+')
-rw-r--r--network/museek+/museek+.SlackBuild22
1 files changed, 11 insertions, 11 deletions
diff --git a/network/museek+/museek+.SlackBuild b/network/museek+/museek+.SlackBuild
index 0bb6961166c6f..b93176f16d658 100644
--- a/network/museek+/museek+.SlackBuild
+++ b/network/museek+/museek+.SlackBuild
@@ -4,8 +4,8 @@
# Written by Iskar Enev <iskar.enev[@]gmail.com>
# Currently maintained by B. Watson <yalhcru@gmail.com>
-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}