aboutsummaryrefslogtreecommitdiff
path: root/games/trackballs/trackballs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/trackballs/trackballs.SlackBuild')
-rw-r--r--games/trackballs/trackballs.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/games/trackballs/trackballs.SlackBuild b/games/trackballs/trackballs.SlackBuild
index d8f956a86459..d6608edba2de 100644
--- a/games/trackballs/trackballs.SlackBuild
+++ b/games/trackballs/trackballs.SlackBuild
@@ -6,6 +6,11 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211018 bkw:
+# - update for v1.3.3
+# - drop guile2.2 dependency (Slackware's guile 3 works OK)
+# - use symlink instead of copy for /usr/share/pixmaps icon
+# - put html docs in actual html/ dir in docdir
# 20210222 bkw: update for v1.3.2
# 20201024 bkw: update for v1.3.1
# 20170621 bkw: fix build on -current
@@ -13,7 +18,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=trackballs
-VERSION=${VERSION:-1.3.2}
+VERSION=${VERSION:-1.3.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -26,9 +31,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
@@ -72,7 +74,7 @@ cd build
cmake \
-DTRACKBALLS_BIN_DIR=/usr/games \
-DTRACKBALLS_MAN_DIR=/usr/man \
- -DTRACKBALLS_DOC_DIR=/usr/doc/$PRGNAM-$VERSION \
+ -DTRACKBALLS_DOC_DIR=/usr/doc/$PRGNAM-$VERSION/html \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11" \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -84,13 +86,12 @@ cd ..
gzip $PKG/usr/man/man6/$PRGNAM.6
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
cp -a README* AUTHORS* COPYING* FAQ* TODO* NEWS* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Compatibility icon for old-school window managers.
mkdir -p $PKG/usr/share/pixmaps
-cat share/icons/$PRGNAM-64x64.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc