diff options
author | B. Watson <yalhcru@gmail.com> | 2020-10-26 00:44:55 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-10-31 11:15:39 +0700 |
commit | cab929f2a6133e04054987f529d17e86dd0e8de8 (patch) | |
tree | f54e6afc18ff43f4eee96911b2a9c287fdf9c80a /games/uqm | |
parent | 6e218a65ad753a9fabfe3de5d5f5e3f8c938dcde (diff) |
games/uqm: Updated for version 0.7.0+0.8.0.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/uqm')
-rw-r--r-- | games/uqm/README | 2 | ||||
-rw-r--r-- | games/uqm/slack-desc | 10 | ||||
-rw-r--r-- | games/uqm/uqm.SlackBuild | 43 | ||||
-rw-r--r-- | games/uqm/uqm.desktop | 2 | ||||
-rw-r--r-- | games/uqm/uqm.info | 6 |
5 files changed, 31 insertions, 32 deletions
diff --git a/games/uqm/README b/games/uqm/README index 3717c399ead4d..82c266609f497 100644 --- a/games/uqm/README +++ b/games/uqm/README @@ -1,3 +1,5 @@ +uqm (port of the 3DO/PC game - Star Control II) + The Ur-Quan Masters is a port of the 3DO version of the PC game "Star Control II". It runs on modern operating systems and is 100% free. diff --git a/games/uqm/slack-desc b/games/uqm/slack-desc index 1194f203c0a2c..5a02526c97d37 100644 --- a/games/uqm/slack-desc +++ b/games/uqm/slack-desc @@ -11,9 +11,9 @@ uqm: uqm: The Ur-Quan Masters is a port of the 3DO version of the PC game "Star uqm: Control II". It runs on modern operating systems and is 100% free. uqm: -uqm: This package contains the game executable and documentation, as well -uqm: as the game content (graphics, sound, etc). -uqm: -uqm: You may also want the optional uqm_voice and uqm_3domusic packages, -uqm: for a more festive gaming experience. +uqm: This package contains the game executable and documentation, as +uqm: well as the game content (graphics, sound, etc). You may also +uqm: want the optional uqm_voice and uqm_3domusic packages, for a more +uqm: festive gaming experience. uqm: +uqm: This package includes game content version @CONTVER@. diff --git a/games/uqm/uqm.SlackBuild b/games/uqm/uqm.SlackBuild index 28c298ab394d3..1e7ff55891f0d 100644 --- a/games/uqm/uqm.SlackBuild +++ b/games/uqm/uqm.SlackBuild @@ -6,13 +6,21 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20201025 bkw: update build for new content pack 0.8.0. This mostly +# has fixes for typos in the in-game text strings. The game engine +# hasn't changed, so VERSION now has both versions. Also, moved +# the binary to /usr/games where it belongs. + PRGNAM=uqm -VERSION=${VERSION:-0.7.0} +VERSION=${VERSION:-0.7.0+0.8.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CONTENT=${PRGNAM}_content -CONTVER=${CONTVER:-0.7.0} +# Extract the tarball and content versions. If there's no + in +# VERSION, both these will end up equal to VERSION. Otherwise use a + +# to separate source and content versions (e.g. 0.7.0+0.8.0). +SRCVER=$( echo $VERSION | sed 's,+.*,,' ) +CONTVER=$( echo $VERSION | sed 's,.*+,,' ) if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -46,15 +54,12 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-source.tgz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER-source.tgz +cd $PRGNAM-$SRCVER 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 {} \+ # uqm uses a custom build.sh to configure and build the source. # It's not a bad system, but it's interactive only, meaning I have @@ -85,14 +90,6 @@ build_config() { echo # ENTER at top-level menu = done } - -if [ ! -e $CWD/$PRGNAM-$CONTVER-content.uqm ]; then - echo "Error: $CONTENT not found! Please download the $CONTENT" - echo " first (see the README), before attempting to build this." - exit 1 -fi - - build_config | sh build.sh uqm config sed -i -e "s/-O3/$SLKCFLAGS/" -e '/LDFLAGS/s,-lz,-lz -lm,' build.vars sh build.sh uqm @@ -101,9 +98,9 @@ strip $PRGNAM mkdir -p $PKG/usr/libexec/$PRGNAM cp -a $PRGNAM $PKG/usr/libexec/$PRGNAM -mkdir -p $PKG/usr/bin -cat $PRGNAM-wrapper > $PKG/usr/bin/$PRGNAM -chmod 0755 $PKG/usr/bin/$PRGNAM +mkdir -p $PKG/usr/games +cat $PRGNAM-wrapper > $PKG/usr/games/$PRGNAM +chmod 0755 $PKG/usr/games/$PRGNAM mkdir -p $PKG/usr/share/$PRGNAM/content/{addons,packages} cp content/version $PKG/usr/share/$PRGNAM/content @@ -128,7 +125,7 @@ cp $PRGNAM.lsm AUTHORS BUGS COPYING ChangeLog Contributing README WhatsNew \ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc +sed "s,@CONTVER@,$CONTVER," $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG diff --git a/games/uqm/uqm.desktop b/games/uqm/uqm.desktop index 8fdd54b012f73..537a785519489 100644 --- a/games/uqm/uqm.desktop +++ b/games/uqm/uqm.desktop @@ -13,7 +13,7 @@ Comment[de]=Ein interstellar Abenteuerspiel Comment[en]=An interstellar adventure game Comment[es]=Una aventura interestelar Comment[fr]=Une aventure interstellaire -Exec=uqm +Exec=/usr/games/uqm Icon=uqm StartupNotify=true Terminal=false diff --git a/games/uqm/uqm.info b/games/uqm/uqm.info index 0e0b3ae4f1ee3..1818213104139 100644 --- a/games/uqm/uqm.info +++ b/games/uqm/uqm.info @@ -1,10 +1,10 @@ PRGNAM="uqm" -VERSION="0.7.0" +VERSION="0.7.0+0.8.0" HOMEPAGE="http://sc2.sourceforge.net/" DOWNLOAD="http://downloads.sourceforge.net/sc2/uqm-0.7.0-source.tgz \ - http://downloads.sourceforge.net/sc2/uqm-0.7.0-content.uqm" + http://downloads.sourceforge.net/sc2/uqm-0.8.0-content.uqm" MD5SUM="f9018ea0493d7dac6a9e1006b00af7df \ - 2f36dcb15274dbbcb5e266f2ed84d5b2" + 6cbc9d51fa63e07c0f4d1d061136d816" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |