blob: b34f4caad6c470c68f2622d1772d1c5b83d4183d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#!/bin/bash
# Slackware build script for nottetris2
# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# Original download URL is:
# http://stabyourself.net/dl.php?file=nottetris2/nottetris2-source.zip
# I hosted a copy on my server with a more wget-friendly URL.
# VERSION is just the modification date of the .love file.
# 20230107 bkw: BUILD=2, include the SlackBuild in the doc dir.
# 20241009 bkw: Modified by SlackBuilds.org, BUILD=3:
# - Bump BUILD for luajit-2.1.x
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nottetris2
VERSION=${VERSION:-20110620}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
# filenames with spaces, tread carefully warrior!
PAYLOAD="Not Tetris 2.love"
README="Not Readme.txt"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
unzip $CWD/$PRGNAM-source.zip
# no find/chmod boilerplate, everything installed with explicit permissions.
mkdir -p $PKG/usr/games/
echo '#!/usr/bin/env love-0.7.2' > $PKG/usr/games/$PRGNAM
cat "$PAYLOAD" >> $PKG/usr/games/$PRGNAM
chmod 755 $PKG/usr/games/$PRGNAM
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
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
# icon is part of the title screen, diked out with gimp
mkdir -p $PKG/usr/share/pixmaps
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|