diff options
author | B. Watson <urchlay@slackware.uk> | 2023-08-09 01:26:20 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-08-12 08:29:52 +0700 |
commit | 4aafff77e6499a1d1e750125c4062fa9c58f9235 (patch) | |
tree | cc7c1d42761873a4d5d778622a31d792db9b8158 /games/hedgewars | |
parent | dbd163adc6ec7d3065f2479e79a6e5c9857781a5 (diff) |
games/hedgewars: New maintainer, various fixes.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/hedgewars')
-rw-r--r-- | games/hedgewars/doinst.sh | 6 | ||||
-rw-r--r-- | games/hedgewars/hedgewars.SlackBuild | 58 | ||||
-rw-r--r-- | games/hedgewars/hedgewars.info | 4 | ||||
-rw-r--r-- | games/hedgewars/icons/128.png | bin | 0 -> 14705 bytes | |||
-rw-r--r-- | games/hedgewars/icons/16.png | bin | 0 -> 1035 bytes | |||
-rw-r--r-- | games/hedgewars/icons/22.png | bin | 0 -> 1713 bytes | |||
-rw-r--r-- | games/hedgewars/icons/256.png | bin | 0 -> 34358 bytes | |||
-rw-r--r-- | games/hedgewars/icons/32.png | bin | 0 -> 2714 bytes | |||
-rw-r--r-- | games/hedgewars/icons/48.png | bin | 0 -> 4293 bytes | |||
-rw-r--r-- | games/hedgewars/icons/64.png | bin | 0 -> 6172 bytes |
10 files changed, 48 insertions, 20 deletions
diff --git a/games/hedgewars/doinst.sh b/games/hedgewars/doinst.sh index 5fb28930db0b..65c7e2eeb9aa 100644 --- a/games/hedgewars/doinst.sh +++ b/games/hedgewars/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 -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/hedgewars/hedgewars.SlackBuild b/games/hedgewars/hedgewars.SlackBuild index ffe8c5418169..1a421283ae9a 100644 --- a/games/hedgewars/hedgewars.SlackBuild +++ b/games/hedgewars/hedgewars.SlackBuild @@ -22,6 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20230808 bkw: BUILD=2 +# - take over maintenance. +# - binary in /usr/games. +# - strip bin and shared lib. +# - fix permission on appdata. +# - include prescaled icons. + # 20220320 bkw: Modified by SlackBuilds.org: fix 32-bit build. # The deps are different on 32-bit and 64-bit; see README. @@ -33,7 +40,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=hedgewars VERSION=${VERSION:-1.0.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -80,11 +87,8 @@ rm -rf $PRGNAM-src-$VERSION tar xvjf $CWD/$PRGNAM-src-$VERSION.tar.bz2 cd $PRGNAM-src-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find . -type f -a -exec chmod 644 {} + \ + -o -type d -a -exec chmod 755 {} + patch -p1 < $CWD/fpc-3.2.0.patch patch -p1 < $CWD/include.qpainterpath.diff @@ -98,24 +102,42 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DNOVIDEOREC=1 \ - -DPHYSFS_SYSTEM=off \ - -DNOSERVER=1 \ + -DNOVIDEOREC=ON \ + -DNOSERVER=ON \ -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. -# Include the man page. -mkdir -p $PKG/usr/man/man6 -cp $TMP/$PRGNAM-src-$VERSION/man/hedgewars.6 $PKG/usr/man/man6 +# It's a game, so: +mv $PKG/usr/bin $PKG/usr/games -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +# Cleanup on aisle 6: +strip $PKG/usr/games/* +sed -i '/^Exec/s,=,=/usr/games/,' $PKG/usr/share/applications/$PRGNAM.desktop +chmod -x $PKG/usr/share/appdata/* -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING INSTALL.md CREDITS README.md Fonts_LICENSE.txt ChangeLog.txt $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# Include the man page. +mkdir -p $PKG/usr/man/man6 +gzip -9c < man/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz + +# Don't need tiny XPM icon. +rm -f $PKG/usr/share/pixmaps/* + +# Icons extracted from share/Icon.icns with icns2png. +for i in $CWD/icons/*.png; do + px="$( basename $i .png )" + sz="${px}x${px}" + dir=$PKG/usr/share/icons/hicolor/$sz/apps + mkdir -p $dir + cat $i > $dir/$PRGNAM.png +done +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a COPYING CREDITS README.md Fonts_LICENSE.txt ChangeLog.txt $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/games/hedgewars/hedgewars.info b/games/hedgewars/hedgewars.info index 6400dd214a20..ac58dd47c0b8 100644 --- a/games/hedgewars/hedgewars.info +++ b/games/hedgewars/hedgewars.info @@ -6,5 +6,5 @@ MD5SUM="5463c05cd69abe2a256d9bbd41d4c923" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="fpc lua physfs" -MAINTAINER="Rubén Llorente" -EMAIL="porting@use.startmail.com" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" diff --git a/games/hedgewars/icons/128.png b/games/hedgewars/icons/128.png Binary files differnew file mode 100644 index 000000000000..6193f5aee56b --- /dev/null +++ b/games/hedgewars/icons/128.png diff --git a/games/hedgewars/icons/16.png b/games/hedgewars/icons/16.png Binary files differnew file mode 100644 index 000000000000..a33d10818843 --- /dev/null +++ b/games/hedgewars/icons/16.png diff --git a/games/hedgewars/icons/22.png b/games/hedgewars/icons/22.png Binary files differnew file mode 100644 index 000000000000..cae5bf715c1a --- /dev/null +++ b/games/hedgewars/icons/22.png diff --git a/games/hedgewars/icons/256.png b/games/hedgewars/icons/256.png Binary files differnew file mode 100644 index 000000000000..40963d20aaa8 --- /dev/null +++ b/games/hedgewars/icons/256.png diff --git a/games/hedgewars/icons/32.png b/games/hedgewars/icons/32.png Binary files differnew file mode 100644 index 000000000000..f9f8e7bbef79 --- /dev/null +++ b/games/hedgewars/icons/32.png diff --git a/games/hedgewars/icons/48.png b/games/hedgewars/icons/48.png Binary files differnew file mode 100644 index 000000000000..96faf9d5e4cd --- /dev/null +++ b/games/hedgewars/icons/48.png diff --git a/games/hedgewars/icons/64.png b/games/hedgewars/icons/64.png Binary files differnew file mode 100644 index 000000000000..4942defdfd2a --- /dev/null +++ b/games/hedgewars/icons/64.png |