diff options
author | Phillip Warner <pc_warner@yahoo.com> | 2010-05-13 00:27:06 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:27:06 +0200 |
commit | c6a880594ca700a9b46ba5f38753e461a4bc8fe4 (patch) | |
tree | 1a004704f723c5ff96b236ceed7df52b3ef13c46 /games/smc_music/smc_music.SlackBuild | |
parent | cdf1299955ee9b0360a3a5a5369fd04280a6bdfe (diff) | |
download | slackbuilds-c6a880594ca700a9b46ba5f38753e461a4bc8fe4.tar.gz |
games/smc_music: Updated for version 4.1
Diffstat (limited to 'games/smc_music/smc_music.SlackBuild')
-rw-r--r-- | games/smc_music/smc_music.SlackBuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/games/smc_music/smc_music.SlackBuild b/games/smc_music/smc_music.SlackBuild index 404b9d4a07..987ca1c5bf 100644 --- a/games/smc_music/smc_music.SlackBuild +++ b/games/smc_music/smc_music.SlackBuild @@ -6,32 +6,31 @@ PRGNAM=smc_music VERSION=${VERSION:-4.1} - -# The music pack file name -# This is not always consistent, so check it -MUSICPACK=${MUSICPACK:-SMC_[Mm]usic_${VERSION}_high.zip} - -ARCH=noarch # Leave this alone +ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +# The music pack file name +# This is not always consistent, so check it +MUSICPACK=${MUSICPACK:-SMC_[Mm]usic_${VERSION}_high.zip} + set -e mkdir -p $TMP $OUTPUT - rm -rf $PKG mkdir -p $PKG cd $PKG - unzip $CWD/$MUSICPACK mkdir -p $PKG/usr/share/$(echo $PRGNAM | cut -d"_" -f1) \ $PKG/usr/doc/$PRGNAM-$VERSION \ $PKG/install + mv -v data/music $PKG/usr/share/$(echo $PRGNAM | cut -d"_" -f1) rmdir data @@ -44,4 +43,4 @@ chmod -R a-s,u+rw,go-w . cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/slack-desc > $PKG/install/slack-desc -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |