mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
6cf20702d0
commit
6044dfe244
7 changed files with 28 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
||||||
sdlpop (Prince of Persia rewrite)
|
sdlpop (Prince of Persia rewrite)
|
||||||
|
|
||||||
SDLPoP is an open-source port of Prince of Persia 1, that runs natively
|
SDLPoP is an open-source port of Prince of Persia 1, that runs
|
||||||
under Windows and Linux. It is based on the DOS version of the game,
|
natively under Windows and Linux. It is based on the MS-DOS version
|
||||||
and uses SDL 2. All data files needed to play the game are included.
|
of the game, and uses SDL 2. All data files needed to play the game
|
||||||
|
are included.
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
if [ -x /usr/bin/update-desktop-database ]; then
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
fi
|
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
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
|
|
||||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
# 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.
|
# 20200927 bkw: updated for v1.21.
|
||||||
# 20191127 bkw: updated for v1.20.
|
# 20191127 bkw: updated for v1.20.
|
||||||
# 20180611 bkw: updated for v1.20.
|
# 20180611 bkw: updated for v1.20.
|
||||||
|
@ -20,7 +23,7 @@
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=sdlpop
|
PRGNAM=sdlpop
|
||||||
VERSION=${VERSION:-1.21}
|
VERSION=${VERSION:-1.22}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
@ -33,9 +36,6 @@ if [ -z "$ARCH" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
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
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
exit 0
|
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
|
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps
|
||||||
|
|
||||||
# icon downloaded from:
|
# 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
|
# 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.
|
# 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
|
# .desktop written for this build
|
||||||
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
|
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=sdlpop
|
Name=sdlpop
|
||||||
Comment=Prince of Persia I
|
Comment=Prince of Persia I
|
||||||
Exec=sdlpop
|
Exec=/usr/games/sdlpop
|
||||||
Icon=sdlpop
|
Icon=sdlpop
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="sdlpop"
|
PRGNAM="sdlpop"
|
||||||
VERSION="1.21"
|
VERSION="1.22"
|
||||||
HOMEPAGE="http://www.popot.org/get_the_games.php?game=SDLPoP"
|
HOMEPAGE="http://www.popot.org/get_the_games.php?game=SDLPoP"
|
||||||
DOWNLOAD="https://github.com/NagyD/SDLPoP/archive/v1.21/SDLPoP-1.21.zip"
|
DOWNLOAD="https://github.com/NagyD/SDLPoP/archive/v1.22/SDLPoP-1.22.zip"
|
||||||
MD5SUM="9bf414e82ed313f61be02a25ef88c92b"
|
MD5SUM="c5992b9aa8b71ffd36985ad10ec7564c"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 106 KiB |
|
@ -9,7 +9,7 @@
|
||||||
sdlpop: sdlpop (Prince of Persia rewrite)
|
sdlpop: sdlpop (Prince of Persia rewrite)
|
||||||
sdlpop:
|
sdlpop:
|
||||||
sdlpop: SDLPoP is an open-source port of Prince of Persia 1, that runs
|
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: of the game, and uses SDL 2. All data files needed to play the game
|
||||||
sdlpop: are included.
|
sdlpop: are included.
|
||||||
sdlpop:
|
sdlpop:
|
||||||
|
|
Loading…
Reference in a new issue