games/open-adventure: Updated for version 1.4.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2018-01-14 12:01:09 -05:00 committed by Willy Sudiarto Raharjo
parent a13d0fd37e
commit 1a83a40569
3 changed files with 18 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View file

@ -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

View file

@ -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"