aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-08-23 15:58:20 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-08-24 11:55:27 +0700
commit65863de390eb96a4fa7794f51998ca51cafc5b94 (patch)
tree363ed1ea69334de1142873fd099950959f64a6db /games
parent4aca16601d3b05276dc5610d336dbe2c9cba3595 (diff)
games/lbreakout2: Updated for version 2.6.5, new maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/lbreakout2/doinst.sh7
-rw-r--r--games/lbreakout2/lbreakout2.SlackBuild43
-rw-r--r--games/lbreakout2/lbreakout2.desktop2
-rw-r--r--games/lbreakout2/lbreakout2.info4
4 files changed, 35 insertions, 21 deletions
diff --git a/games/lbreakout2/doinst.sh b/games/lbreakout2/doinst.sh
index 392c12adb9bd3..65c7e2eeb9aa5 100644
--- a/games/lbreakout2/doinst.sh
+++ b/games/lbreakout2/doinst.sh
@@ -1,4 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
- /usr/bin/update-desktop-database -q usr/share/applications
+ /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/lbreakout2/lbreakout2.SlackBuild b/games/lbreakout2/lbreakout2.SlackBuild
index 79d2b1420800f..9a60ad74543a7 100644
--- a/games/lbreakout2/lbreakout2.SlackBuild
+++ b/games/lbreakout2/lbreakout2.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for LBreakout2
-# Copyright 2007, 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com>
+# Copyright 2007, 2008 Frank Caraballo <email removed>
+# Copyright 2024 B. Watson <urchlay@slackware.uk>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +23,18 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20240823 bkw: BUILD=2
+# - new maintainer.
+# - binary in /usr/games.
+# - remove useless INSTALL and ABOUT-NLS from doc dir.
+# - get rid of /usr/share/doc; move HTML docs to our doc dir.
+# - new style icons.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lbreakout2
VERSION=${VERSION:-2.6.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +46,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
@@ -73,15 +78,14 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$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 -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --bindir=/usr/games \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var/lib/lgames \
@@ -91,16 +95,21 @@ CFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL README* TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+for px in 32 48; do
+ sz=${px}x${px}
+ dir=$PKG/usr/share/icons/hicolor/$sz/apps
+ mkdir -p $dir
+ convert lbreakout$px.gif $dir/$PRGNAM.png
+done
mkdir -p $PKG/usr/share/{applications,pixmaps}
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-( cd $PKG/usr/share/pixmaps
- ln -s ../lbreakout2/gfx/win_icon.png lbreakout2.png
-)
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKGDOC/$PRGNAM $PKGDOC/html
+cp -a AUTHORS ChangeLog COPYING README* TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/games/lbreakout2/lbreakout2.desktop b/games/lbreakout2/lbreakout2.desktop
index 8d2693ede15b4..518c86ed5550a 100644
--- a/games/lbreakout2/lbreakout2.desktop
+++ b/games/lbreakout2/lbreakout2.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=LBreakout2
GenericName=Breakout-style Arcade Game
-Exec=lbreakout2
+Exec=/usr/games/lbreakout2
Terminal=false
Type=Application
Categories=Game;ArcadeGame
diff --git a/games/lbreakout2/lbreakout2.info b/games/lbreakout2/lbreakout2.info
index 3302b3d124d8c..6f3cee188a05b 100644
--- a/games/lbreakout2/lbreakout2.info
+++ b/games/lbreakout2/lbreakout2.info
@@ -6,5 +6,5 @@ MD5SUM="1a9238b83f9f13f09b7a4d53e00b4e84"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Glenn Becker"
-EMAIL="glenn.becker@gmail.com"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"