summaryrefslogtreecommitdiff
path: root/games/smc_music/smc_music.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/smc_music/smc_music.SlackBuild')
-rw-r--r--games/smc_music/smc_music.SlackBuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/games/smc_music/smc_music.SlackBuild b/games/smc_music/smc_music.SlackBuild
new file mode 100644
index 0000000000..8181783317
--- /dev/null
+++ b/games/smc_music/smc_music.SlackBuild
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+# Slackware build script for
+# smc_music (Secret Maryo Chronicles Music Pack)
+# Written by Phillip Warner <pc_warner@yahoo.com>
+
+PRGNAM=smc_music
+VERSION=${VERSION:-4.0}
+
+# The music pack file name
+# This is not always consistent, so check it
+MUSICPACK=${MUSICPACK:-SMC_music_${VERSION}_high.zip}
+
+ARCH=noarch # Leave this alone
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+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
+
+mv -v docs/* $PKG/usr/doc/$PRGNAM-$VERSION/
+rmdir docs
+
+chown -R root:root .
+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