summaryrefslogtreecommitdiff
path: root/games/smc_music/smc_music.SlackBuild
diff options
context:
space:
mode:
authorPhillip Warner <pc_warner@yahoo.com>2010-05-11 22:53:47 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:53:47 +0200
commit43ad3ee4223cee33e4d89183e0d49c92d7ba00cd (patch)
tree47f470f3e03d20abaec5c561a17b21847d969678 /games/smc_music/smc_music.SlackBuild
parent160c11c9896b479e9a2b3850f9de750b70893803 (diff)
downloadslackbuilds-43ad3ee4223cee33e4d89183e0d49c92d7ba00cd.tar.gz
games/smc_music: Added to 12.1 repository
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