games/wordwarvi: Use long-format github URL, add .desktop.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2017-03-02 16:13:01 -05:00 committed by Willy Sudiarto Raharjo
parent a519a895b1
commit 6397dbf429
3 changed files with 15 additions and 7 deletions

View File

@ -4,11 +4,13 @@
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details.
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20170302 bkw: use long-format github URL, add .desktop, BUILD=2
PRGNAM=wordwarvi
VERSION=${VERSION:-1.0.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -44,7 +46,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -57,10 +59,9 @@ make OPTIMIZE_FLAG="$SLKCFLAGS" MANDIR=/usr/man SCREENSAVERFLAG=-DDO_INHIBIT_SCR
make install MANDIR=/usr/man DESTDIR=$PKG
strip $PKG/usr/games/$PRGNAM
mkdir -p $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications
cat icons/${PRGNAM}_icon_128x128.png > $PKG/usr/share/pixmaps/$PRGNAM.png
# TODO: .desktop
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.png *.txt *.html AUTHORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Name=Word War VI
Type=Application
Categories=Game;ArcadeGame;
Exec=wordwarvi %F
TryExec=wordwarvi
Icon=wordwarvi

View File

@ -1,7 +1,7 @@
PRGNAM="wordwarvi"
VERSION="1.0.2"
HOMEPAGE="https://github.com/smcameron/wordwarvi"
DOWNLOAD="https://github.com/smcameron/wordwarvi/archive/v1.0.2.tar.gz"
DOWNLOAD="https://github.com/smcameron/wordwarvi/archive/v1.0.2/wordwarvi-1.0.2.tar.gz"
MD5SUM="c55fad24f42ad2be0e06ac70f5fbc0be"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""