diff options
author | B. Watson <yalhcru@gmail.com> | 2010-05-12 17:39:13 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:39:13 +0200 |
commit | 1e68421c88bcd58201f7039e299f933f2cd5950f (patch) | |
tree | 878e9d93589f622973bbc922f2e7ca047b039687 /games/eduke32_hires_pack/eduke32_hires_pack.SlackBuild | |
parent | 54553cabeb52d2f0bf0c4305a5913b8141d2794e (diff) | |
download | slackbuilds-1e68421c88bcd58201f7039e299f933f2cd5950f.tar.gz |
games/eduke32_hires_pack: Updated for version 4.0_321
Diffstat (limited to 'games/eduke32_hires_pack/eduke32_hires_pack.SlackBuild')
-rw-r--r-- | games/eduke32_hires_pack/eduke32_hires_pack.SlackBuild | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/games/eduke32_hires_pack/eduke32_hires_pack.SlackBuild b/games/eduke32_hires_pack/eduke32_hires_pack.SlackBuild index e13fe0a7d0..21a0d58db6 100644 --- a/games/eduke32_hires_pack/eduke32_hires_pack.SlackBuild +++ b/games/eduke32_hires_pack/eduke32_hires_pack.SlackBuild @@ -5,9 +5,8 @@ # Written by B. Watson (yalhcru@gmail.com) PRGNAM=eduke32_hires_pack -VERSION=${VERSION:-20070427} -ZIPFILE=dn3d_hrp-27-04-2007.zip -ARCH=${ARCH:-noarch} +VERSION=${VERSION:-4.0_321} +ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -16,29 +15,45 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +VERMAJOR=$( echo $VERSION | cut -d_ -f1 ) +VERMINOR=$( echo $VERSION | cut -d_ -f2 ) +ZIPFILE="dn3d_hrp-${VERMAJOR}(${VERMINOR}).zip" + set -e rm -rf $PKG -mkdir -p $TMP $PKG/usr/share/games/eduke32 $OUTPUT +mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION mkdir $PRGNAM-$VERSION cd $PRGNAM-$VERSION unzip $CWD/$ZIPFILE -chmod 644 *.* -chmod 755 autoload autoload/duke3d.grp - -# 20080810 bkw: sd_duke stuff doesn't seem to work -rm -f sd_duke.* - chown -R root:root . +find . -type d | xargs chmod 755 +find . -type f | xargs chmod 644 + +mkdir -p $PKG/usr/share/games/eduke32 mv autoload $PKG/usr/share/games/eduke32/autoload mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.txt *.TXT $PKG/usr/doc/$PRGNAM-$VERSION +# If they have the music pack, include that too +if [ -r $CWD/eduke32_mus.zip ]; then + unzip $CWD/eduke32_mus.zip music_readme.txt + cat music_readme.txt > $PKG/usr/doc/$PRGNAM-$VERSION/music_readme.txt + cat $CWD/eduke32_mus.zip > \ + $PKG/usr/share/games/eduke32/autoload/duke3d.grp/eduke32_mus.zip +fi + +cp *.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README +# De-windows-ize the docs +sed -i -s -e "s/\\x92/'/g" \ + -e 's/\x96/-/g' \ + -e 's/\r//g' \ + $PKG/usr/doc/$PRGNAM-$VERSION/*.txt + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |