diff options
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} |