summaryrefslogtreecommitdiffstats
path: root/games/nottetris2/nottetris2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/nottetris2/nottetris2.SlackBuild')
-rw-r--r--games/nottetris2/nottetris2.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/games/nottetris2/nottetris2.SlackBuild b/games/nottetris2/nottetris2.SlackBuild
index bc4117cd91..f761b01a89 100644
--- a/games/nottetris2/nottetris2.SlackBuild
+++ b/games/nottetris2/nottetris2.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for nottetris2
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
@@ -12,19 +12,18 @@
# VERSION is just the modification date of the .love file.
+# 20230107 bkw: BUILD=2, include the SlackBuild in the doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nottetris2
VERSION=${VERSION:-20110620}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-# 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
@@ -55,8 +54,10 @@ echo '#!/usr/bin/env love-0.7.2' > $PKG/usr/games/$PRGNAM
cat "$PAYLOAD" >> $PKG/usr/games/$PRGNAM
chmod 755 $PKG/usr/games/$PRGNAM
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-install -m0644 -oroot -groot "$README" $PKG/usr/doc/$PRGNAM-$VERSION
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+install -m0644 -oroot -groot "$README" $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
# .desktop written for this build
mkdir -p $PKG/usr/share/applications