diff options
author | B. Watson <yalhcru@gmail.com> | 2018-01-14 12:01:09 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-17 19:46:26 +0700 |
commit | 1a83a4056917b19893a4a24c56045c55d2ae159c (patch) | |
tree | 882db6f19d3ea20934690f4ab5879bd75a3ce5ad /games | |
parent | a13d0fd37ed8c0f54fac584d75e9f6b0569de0c9 (diff) |
games/open-adventure: Updated for version 1.4.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games')
-rw-r--r-- | games/open-adventure/advent.png | bin | 0 -> 4875 bytes | |||
-rw-r--r-- | games/open-adventure/open-adventure.SlackBuild | 21 | ||||
-rw-r--r-- | games/open-adventure/open-adventure.info | 6 |
3 files changed, 18 insertions, 9 deletions
diff --git a/games/open-adventure/advent.png b/games/open-adventure/advent.png Binary files differnew file mode 100644 index 0000000000000..8e1a8fdc5298a --- /dev/null +++ b/games/open-adventure/advent.png diff --git a/games/open-adventure/open-adventure.SlackBuild b/games/open-adventure/open-adventure.SlackBuild index 28458126d4889..2c1a1ee8e9278 100644 --- a/games/open-adventure/open-adventure.SlackBuild +++ b/games/open-adventure/open-adventure.SlackBuild @@ -6,8 +6,13 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20180114 bkw: +# - Update for v1.4. +# - Include upstream's icon and .desktop. +# - New dependencies in .info file :( + PRGNAM=open-adventure -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-1.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -52,7 +57,7 @@ rm -rf $PRGNAM-$VERSION-* # handle both possibilities here. I know how to avoid this with github # downloads, but not gitlab. Also, notice the * in the 2nd filename # (and in the 'cd' below): I'm *not* hard-coding the full git hash here. -tar xvf $CWD/archive.tar.bz2\?ref=1.0 || +tar xvf $CWD/archive.tar.bz2\?ref=$VERSION || tar xvf $CWD/$PRGNAM-$VERSION-*.tar.bz2 cd $PRGNAM-$VERSION-* @@ -63,10 +68,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# This thing is small enough that it's not worth trying to fix parallel -# make. Plus, upstream's already fixed it in git, -j1 won't be needed for -# the next release. -make -j1 CCFLAGS="-std=c99 $SLKCFLAGS" +# It'd be nice if I could pass my own CFLAGS without editing the Makefile... +sed -i "s,-O2,$SLKCFLAGS," Makefile +make make $EXE.6 # no 'make install' target: @@ -78,6 +82,11 @@ gzip -9c < $EXE.6 > $PKG/usr/man/man6/$EXE.6.gz ln -s $EXE.6.gz $PKG/usr/man/man6/$PRGNAM.6.gz ln -s $EXE $PKG/usr/games/$PRGNAM +# icon converted from advent.svg (rather not script that here) +mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps +cat $EXE.desktop > $PKG/usr/share/applications/$EXE.desktop +cat $CWD/$EXE.png > $PKG/usr/share/pixmaps/$EXE.png + # don't bother with advent.adoc, it's the man page. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING NEWS README.adoc TODO h*.adoc $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/games/open-adventure/open-adventure.info b/games/open-adventure/open-adventure.info index eca2e5ea70dda..397cd1b8c3d1a 100644 --- a/games/open-adventure/open-adventure.info +++ b/games/open-adventure/open-adventure.info @@ -1,10 +1,10 @@ PRGNAM="open-adventure" -VERSION="1.0" +VERSION="1.4" HOMEPAGE="https://gitlab.com/esr/open-adventure" -DOWNLOAD="https://gitlab.com/esr/open-adventure/repository/archive.tar.bz2?ref=1.0" +DOWNLOAD="https://gitlab.com/esr/open-adventure/repository/archive.tar.bz2?ref=1.4" MD5SUM="889d762a40f8aa8f7866ec436dff301d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="PyYAML libedit" MAINTAINER="B. Watson" EMAIL="yalhcru@gmail.com" |