aboutsummaryrefslogtreecommitdiff
path: root/games/sdlpop
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-25 15:53:15 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:23 +0700
commit6044dfe2442b2e22f7ad23b3ae4fe46e57bb46dc (patch)
tree0d0570b435e0ce9e5010e33f842da9f6cba33393 /games/sdlpop
parent6cf20702d0ac8cbcde1836237a4885b57d3a802e (diff)
games/sdlpop: Updated for version 1.22.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/sdlpop')
-rw-r--r--games/sdlpop/README7
-rw-r--r--games/sdlpop/doinst.sh6
-rw-r--r--games/sdlpop/sdlpop.SlackBuild19
-rw-r--r--games/sdlpop/sdlpop.desktop2
-rw-r--r--games/sdlpop/sdlpop.info6
-rw-r--r--games/sdlpop/sdlpop.pngbin42664 -> 108739 bytes
-rw-r--r--games/sdlpop/slack-desc2
7 files changed, 28 insertions, 14 deletions
diff --git a/games/sdlpop/README b/games/sdlpop/README
index 96a4ef218cc85..02056b099f3f7 100644
--- a/games/sdlpop/README
+++ b/games/sdlpop/README
@@ -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.
diff --git a/games/sdlpop/doinst.sh b/games/sdlpop/doinst.sh
index 5fb28930db0b9..3e5691a052b5b 100644
--- a/games/sdlpop/doinst.sh
+++ b/games/sdlpop/doinst.sh
@@ -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
diff --git a/games/sdlpop/sdlpop.SlackBuild b/games/sdlpop/sdlpop.SlackBuild
index 8a0d3ca8d9f78..9f93dd430118f 100644
--- a/games/sdlpop/sdlpop.SlackBuild
+++ b/games/sdlpop/sdlpop.SlackBuild
@@ -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
diff --git a/games/sdlpop/sdlpop.desktop b/games/sdlpop/sdlpop.desktop
index a6e60fc602fd5..0bff6d661d51d 100644
--- a/games/sdlpop/sdlpop.desktop
+++ b/games/sdlpop/sdlpop.desktop
@@ -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
diff --git a/games/sdlpop/sdlpop.info b/games/sdlpop/sdlpop.info
index f6c168bf2afd9..5eaa68d31884b 100644
--- a/games/sdlpop/sdlpop.info
+++ b/games/sdlpop/sdlpop.info
@@ -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=""
diff --git a/games/sdlpop/sdlpop.png b/games/sdlpop/sdlpop.png
index 19317521958ce..8861e76a0f153 100644
--- a/games/sdlpop/sdlpop.png
+++ b/games/sdlpop/sdlpop.png
Binary files differ
diff --git a/games/sdlpop/slack-desc b/games/sdlpop/slack-desc
index 3a48629df3005..df7d6f56d4f7c 100644
--- a/games/sdlpop/slack-desc
+++ b/games/sdlpop/slack-desc
@@ -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: