From e6aed5b313305aac8164a0c7ec3fe96b04439e9a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 15 Sep 2018 22:19:16 -0400 Subject: games/wargus: Updated for version 2.4.1. Signed-off-by: B. Watson --- games/wargus/README | 11 ++-- games/wargus/README_SBo.txt | 104 ++++++++++++++++++++++++++++++++++++++ games/wargus/README_Slackware.txt | 104 -------------------------------------- games/wargus/wargus.SlackBuild | 19 ++++--- games/wargus/wargus.info | 8 +-- 5 files changed, 121 insertions(+), 125 deletions(-) create mode 100644 games/wargus/README_SBo.txt delete mode 100644 games/wargus/README_Slackware.txt (limited to 'games/wargus') diff --git a/games/wargus/README b/games/wargus/README index f521a25955..e2da4ac6fd 100644 --- a/games/wargus/README +++ b/games/wargus/README @@ -2,10 +2,7 @@ wargus (Warcraft II data game set for the Stratagus engine) Wargus can be used to play Warcraft II from Blizzard Entertainment. -You need the original Warcraft II for DOS or the Beyond the Dark -Portal expansion pack to extract the game data files. See the file -README_Slackware.txt for full instructions. If you don't read the -instructions, you won't get a playable game. - -Upgrade note: dependencies have changed. Read wargus.info and -README_Slackware.txt even if you don't think you need to! +You need the original Warcraft II for DOS or the Beyond the Dark Portal +expansion pack to extract the game data files. See the file README_SBo.txt +for full instructions. If you don't read the instructions, you won't +get a playable game. diff --git a/games/wargus/README_SBo.txt b/games/wargus/README_SBo.txt new file mode 100644 index 0000000000..98667a3ab7 --- /dev/null +++ b/games/wargus/README_SBo.txt @@ -0,0 +1,104 @@ +I hate having to have a set of notes/instructions that's longer than +the SlackBuild is, but this stuff is important... + +Stratagus +--------- + +The version number of wargus needs to match the version number of your +installed stratagus package. In practice this won't be a problem if +you use SlackBuilds.org for both (because both will get updated at the +same time). + +Upgrade Notes +------------- + +The dependencies for in-game music have changed. wargus 2.2.x +used TiMidity++ and eawpats. Starting with 2.3.0, fluidsynth and +fluid-soundfont are used instead. + +If you're upgrading from a previous version of wargus, you may have +to delete your old preferences directory: + + rm -rf ~/.stratagus/wc2 + +Slackware Note +-------------- + +When creating a package, you'll see errors like: + +WARNING: gzip test failed on usr/share/games/stratagus/wargus/music/Orc Defeat.ogg.gz + +These are harmless, and caused by makepkg's gzip test not being able to +handle filenames with spaces in them. There's a thread on linuxquestions +about makepkg's problems with spaces in filenames: + +http://www.linuxquestions.org/questions/slackware-14/bug-in-makepkg-and-symlinks-with-blanks-in-filename-4175480597/ + +The general consensus seems to be, changing makepkg isn't going to happen. + +SlackBuilds.org Note +-------------------- + +In the .info file, stratagus, ffmpeg2theora, fluidsynth, and +fluid-soundfont are listed as requirements. ffmpeg2theora is only required +at build time; the others required at runtime (matters if you're deploying +on a host other than the build host). + +Game Data +--------- + +By itself, wargus isn't a playable game. It needs the data from the +original Warcraft II game. + +You need the original Warcraft II for DOS or the Beyond the Dark Portal +expansion pack to extract the game data files. Battle.net edition doesn't +work. This can be either a CD-ROM, ISO image, installed game directory +(e.g. on your Windows C: drive), or a zip/rar/7z/tar archive of any +of the above. + +You can choose to either build a package that includes the game data, or +add the game data separately after package installation. If you include +the data in your package, you MAY NOT redistribute your package. + +To build a package with the data: + +Whatever form you have the game in, set the environment +variable GAMEDATA to point to it: + +export GAMEDATA=/dev/cdrom # original CD +export GAMEDATA=~/oldgames/warcraft2.rar # archive of your old install +export GAMEDATA=~/dosbox/war2 # installed copy +export GAMEDATA=/tmp/warcraft2.iso # image of CD + +...then run ./wargus.SlackBuild + +If GAMEDATA isn't set, or if the extraction process fails, your wargus +package won't include the game data. You'll be unable to play the game +until you've extracted the data yourself. + +Note that the data extraction process ignores many possible errors. If +the game doesn't seem to work correctly, it's possible your install of +Warcraft II is corrupted. + +If you build a package without the data: + +The extraction script used by the SlackBuild is installed as +/usr/bin/extract-warcraft2 (run with no arguments for usage) and can +be run any time without reinstalling the wargus package. If you do +this, and later decide to remove wargus, you'll have to manually rm -rf +/usr/share/games/stratagus/wargus after package removal. + +For game data extraction to work, you will need: + +- ffmpeg2theora + +- if you're extracting from a 7zip or rar archive, you'll need p7zip + or unrar. + +Extraction takes a while, depending on your CPU speed. It renders all the +game's MIDI music as wav files, transcodes those to .ogg, then transcodes +all the game's videos to ogg theora. + +extract-warcraft2 is a wrapper for wartool, supplied with wargus. See +the wartool man page for more information. + diff --git a/games/wargus/README_Slackware.txt b/games/wargus/README_Slackware.txt deleted file mode 100644 index 98667a3ab7..0000000000 --- a/games/wargus/README_Slackware.txt +++ /dev/null @@ -1,104 +0,0 @@ -I hate having to have a set of notes/instructions that's longer than -the SlackBuild is, but this stuff is important... - -Stratagus ---------- - -The version number of wargus needs to match the version number of your -installed stratagus package. In practice this won't be a problem if -you use SlackBuilds.org for both (because both will get updated at the -same time). - -Upgrade Notes -------------- - -The dependencies for in-game music have changed. wargus 2.2.x -used TiMidity++ and eawpats. Starting with 2.3.0, fluidsynth and -fluid-soundfont are used instead. - -If you're upgrading from a previous version of wargus, you may have -to delete your old preferences directory: - - rm -rf ~/.stratagus/wc2 - -Slackware Note --------------- - -When creating a package, you'll see errors like: - -WARNING: gzip test failed on usr/share/games/stratagus/wargus/music/Orc Defeat.ogg.gz - -These are harmless, and caused by makepkg's gzip test not being able to -handle filenames with spaces in them. There's a thread on linuxquestions -about makepkg's problems with spaces in filenames: - -http://www.linuxquestions.org/questions/slackware-14/bug-in-makepkg-and-symlinks-with-blanks-in-filename-4175480597/ - -The general consensus seems to be, changing makepkg isn't going to happen. - -SlackBuilds.org Note --------------------- - -In the .info file, stratagus, ffmpeg2theora, fluidsynth, and -fluid-soundfont are listed as requirements. ffmpeg2theora is only required -at build time; the others required at runtime (matters if you're deploying -on a host other than the build host). - -Game Data ---------- - -By itself, wargus isn't a playable game. It needs the data from the -original Warcraft II game. - -You need the original Warcraft II for DOS or the Beyond the Dark Portal -expansion pack to extract the game data files. Battle.net edition doesn't -work. This can be either a CD-ROM, ISO image, installed game directory -(e.g. on your Windows C: drive), or a zip/rar/7z/tar archive of any -of the above. - -You can choose to either build a package that includes the game data, or -add the game data separately after package installation. If you include -the data in your package, you MAY NOT redistribute your package. - -To build a package with the data: - -Whatever form you have the game in, set the environment -variable GAMEDATA to point to it: - -export GAMEDATA=/dev/cdrom # original CD -export GAMEDATA=~/oldgames/warcraft2.rar # archive of your old install -export GAMEDATA=~/dosbox/war2 # installed copy -export GAMEDATA=/tmp/warcraft2.iso # image of CD - -...then run ./wargus.SlackBuild - -If GAMEDATA isn't set, or if the extraction process fails, your wargus -package won't include the game data. You'll be unable to play the game -until you've extracted the data yourself. - -Note that the data extraction process ignores many possible errors. If -the game doesn't seem to work correctly, it's possible your install of -Warcraft II is corrupted. - -If you build a package without the data: - -The extraction script used by the SlackBuild is installed as -/usr/bin/extract-warcraft2 (run with no arguments for usage) and can -be run any time without reinstalling the wargus package. If you do -this, and later decide to remove wargus, you'll have to manually rm -rf -/usr/share/games/stratagus/wargus after package removal. - -For game data extraction to work, you will need: - -- ffmpeg2theora - -- if you're extracting from a 7zip or rar archive, you'll need p7zip - or unrar. - -Extraction takes a while, depending on your CPU speed. It renders all the -game's MIDI music as wav files, transcodes those to .ogg, then transcodes -all the game's videos to ogg theora. - -extract-warcraft2 is a wrapper for wartool, supplied with wargus. See -the wartool man page for more information. - diff --git a/games/wargus/wargus.SlackBuild b/games/wargus/wargus.SlackBuild index 611c8c5119..aa2cfa94bf 100644 --- a/games/wargus/wargus.SlackBuild +++ b/games/wargus/wargus.SlackBuild @@ -6,8 +6,10 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20180915 bkw: updated for v2.4.1 + PRGNAM=wargus -VERSION=${VERSION:-2.3.0} +VERSION=${VERSION:-2.4.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -43,15 +45,12 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ${PRGNAM}_${VERSION}.orig -tar xvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz -cd ${PRGNAM}_${VERSION}.orig +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # 20150511 bkw: upstream hardcodes a particular soundfont but # doesn't ship it. We'll use the one from fluid-soundfont. @@ -93,7 +92,7 @@ fi install -m0755 -oroot -groot $CWD/extract-warcraft2 $PKG/usr/bin mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp $CWD/README_Slackware.txt COPYING* README doc/changelog doc/*txt \ +cp $CWD/README_SBo.txt COPYING* README* doc/changelog doc/*txt \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/games/wargus/wargus.info b/games/wargus/wargus.info index 40760b1f53..5095a401e7 100644 --- a/games/wargus/wargus.info +++ b/games/wargus/wargus.info @@ -1,8 +1,8 @@ PRGNAM="wargus" -VERSION="2.3.0" -HOMEPAGE="http://wargus.sourceforge.net/index.shtml" -DOWNLOAD="https://launchpad.net/wargus/trunk/2.3/+download/wargus_2.3.0.orig.tar.gz" -MD5SUM="46d5d1b64d78efc3ddaab119e4a2ea33" +VERSION="2.4.1" +HOMEPAGE="https://github.com/Wargus/wargus/" +DOWNLOAD="https://github.com/Wargus/wargus/archive/v2.4.1/wargus-2.4.1.tar.gz" +MD5SUM="4a387868da26df4a4aebff19b6b7b6b1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="stratagus ffmpeg2theora fluidsynth fluid-soundfont" -- cgit v1.2.3