aboutsummaryrefslogtreecommitdiff
path: root/games/lbreakout2/lbreakout2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/lbreakout2/lbreakout2.SlackBuild')
-rw-r--r--games/lbreakout2/lbreakout2.SlackBuild43
1 files changed, 26 insertions, 17 deletions
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