diff options
Diffstat (limited to 'games/tmwmusic/tmwmusic.SlackBuild')
-rw-r--r-- | games/tmwmusic/tmwmusic.SlackBuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/games/tmwmusic/tmwmusic.SlackBuild b/games/tmwmusic/tmwmusic.SlackBuild new file mode 100644 index 0000000000..5fd15982aa --- /dev/null +++ b/games/tmwmusic/tmwmusic.SlackBuild @@ -0,0 +1,39 @@ +#!/bin/sh + +# Slackware build script for tmwmusic +# Written by Erik Hanson erik@slackbuilds.org + +PRGNAM=tmwmusic +VERSION=0.2 +ARCH=noarch +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -eu + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +mkdir -p $PKG/usr/share/tmw/data/music +cp -av data/music/* $PKG/usr/share/tmw/data/music/ + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README COPYING $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |