games/sdlpop: Updated for version 1.22.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-10-25 15:53:15 -04:00 committed by Willy Sudiarto Raharjo
parent 6cf20702d0
commit 6044dfe244
No known key found for this signature in database
GPG key ID: 3F617144D7238786
7 changed files with 28 additions and 14 deletions

View file

@ -1,5 +1,6 @@
sdlpop (Prince of Persia rewrite)
SDLPoP is an open-source port of Prince of Persia 1, that runs natively
under Windows and Linux. It is based on the DOS version of the game,
and uses SDL 2. All data files needed to play the game are included.
SDLPoP is an open-source port of Prince of Persia 1, that runs
natively under Windows and Linux. It is based on the MS-DOS version
of the game, and uses SDL 2. All data files needed to play the game
are included.

View file

@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View file

@ -6,6 +6,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20211025 bkw:
# - updated for v1.22.
# - new icon, new-style icons.
# 20200927 bkw: updated for v1.21.
# 20191127 bkw: updated for v1.20.
# 20180611 bkw: updated for v1.20.
@ -20,7 +23,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=sdlpop
VERSION=${VERSION:-1.21}
VERSION=${VERSION:-1.22}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -33,9 +36,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -90,10 +90,17 @@ gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps
# icon downloaded from:
# http://www.veryicon.com/icons/game/mega-games-pack-26/prince-persia-2008-2.html
# https://www.veryicon.com/icons/game/mega-games-pack-26/prince-persia-2008-1.html
# 1.17 now has an icon.png, but it's 32x32 and not transparent, so I'll keep
# using the one I used for 1.16.
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
for px in 16 32 48 64 128; do
size=${px}x${px}
dir=$PKG/usr/share/icons/hicolor/$size/apps
mkdir -p $dir
convert -resize $size $CWD/$PRGNAM.png $dir/$PRGNAM.png
done
ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
# .desktop written for this build
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop

View file

@ -1,7 +1,7 @@
[Desktop Entry]
Name=sdlpop
Comment=Prince of Persia I
Exec=sdlpop
Exec=/usr/games/sdlpop
Icon=sdlpop
Terminal=false
Type=Application

View file

@ -1,8 +1,8 @@
PRGNAM="sdlpop"
VERSION="1.21"
VERSION="1.22"
HOMEPAGE="http://www.popot.org/get_the_games.php?game=SDLPoP"
DOWNLOAD="https://github.com/NagyD/SDLPoP/archive/v1.21/SDLPoP-1.21.zip"
MD5SUM="9bf414e82ed313f61be02a25ef88c92b"
DOWNLOAD="https://github.com/NagyD/SDLPoP/archive/v1.22/SDLPoP-1.22.zip"
MD5SUM="c5992b9aa8b71ffd36985ad10ec7564c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 106 KiB

View file

@ -9,7 +9,7 @@
sdlpop: sdlpop (Prince of Persia rewrite)
sdlpop:
sdlpop: SDLPoP is an open-source port of Prince of Persia 1, that runs
sdlpop: natively under Windows and Linux. It is based on the DOS version
sdlpop: natively under Windows and Linux. It is based on the MS-DOS version
sdlpop: of the game, and uses SDL 2. All data files needed to play the game
sdlpop: are included.
sdlpop: