ltris: adopted again

This commit is contained in:
John McQuah 2023-01-25 08:39:12 -05:00
parent c397fc2570
commit 343018a748
5 changed files with 98 additions and 4 deletions

13
REPO
View File

@ -55,6 +55,7 @@ d:libdazzle
d:freepats
d:python3-olefile
d:fortune-mod-de
d:ltris
d:python3-leather
d:python3-agate
d:szip
@ -140,10 +141,10 @@ f:6a56978029c881e1303af69dc05e95fb:xxd-standalone/.footprint
f:06775a6c46c9cac1ac4164a3c908a263:bemenu/.signature
f:1081d9e621ac6d2652458be60494ccc5:bemenu/Pkgfile
f:7f401e5f55aae57b88b65b9860cf0268:bemenu/.footprint
f:61b34e67cb216db18fe3ebdd82a4f2aa:lbreakouthd/README
f:fa8d7dd682baa2f47ad26902a1118ccb:lbreakouthd/.signature
f:c2466ffc9d204dbd8eb7bb279b644fd0:lbreakouthd/Pkgfile
f:7deaac2eddcdbad9bb8de4942fbc0633:lbreakouthd/.footprint
f:4bd5070636360865228067768da977b8:lbreakouthd/README
f:a7e2ae58a3ee23376bba8aefef09fc9a:lbreakouthd/.signature
f:16f92311c7720ef8547b2d13cc01a1bc:lbreakouthd/Pkgfile
f:bdbdc04d9665da065c661b1167910488:lbreakouthd/.footprint
f:d8f351d4fb547859ae62a6aec84e2a2e:xclock/.signature
f:63dd2c0915dada0d2d57d4973852e693:xclock/Pkgfile
f:9e7fd2d9b0727049d7af602113e27204:xclock/.footprint
@ -264,6 +265,10 @@ f:0e86b5c3a2d2ec1a745fcdae99b6ec1c:fortune-mod-de/README
f:0ca5a71f7b222cc19d0bb5a7564f4698:fortune-mod-de/.signature
f:c88e43ff06315072c7a8e5684c4a3b6c:fortune-mod-de/Pkgfile
f:ed947dcc1d4f74de07a1d369cf22c0e3:fortune-mod-de/.footprint
f:e86571cb5acc92d19009ae1d795bf7d5:ltris/README
f:2fa86daf3f0fb9fe89a6d789be167658:ltris/.signature
f:aa6490484b828f759241fc623cb365f3:ltris/Pkgfile
f:b0e73ea794503adf7708d18da3faf029:ltris/.footprint
f:5fe3751c2368157bff827c2d3b6ddd09:python3-leather/.signature
f:5523d9635df7e83c7b90a3f1cb913875:python3-leather/Pkgfile
f:2f41be86580cddce4278e99f8867dc89:python3-leather/.footprint

36
ltris/.footprint Normal file
View File

@ -0,0 +1,36 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/ltris
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/applications/
-rw-r--r-- root/root usr/share/applications/ltris.desktop
drwxr-xr-x root/root usr/share/ltris/
-rw-r--r-- root/root usr/share/ltris/figures
drwxr-xr-x root/root usr/share/ltris/gfx/
-rw-r--r-- root/root usr/share/ltris/gfx/back0.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/back1.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/back2.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/back3.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/balloon.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/balloon_peek.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/blocks.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/f_small_white.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/f_small_yellow.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/f_tiny_black.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/f_white.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/f_yellow.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/logo.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/menuback.bmp
-rw-r--r-- root/root usr/share/ltris/gfx/quest.bmp
-rw-r--r-- root/root usr/share/ltris/ltris128.png
drwxr-xr-x root/root usr/share/ltris/sounds/
-rw-r--r-- root/root usr/share/ltris/sounds/click.wav
-rw-r--r-- root/root usr/share/ltris/sounds/excellent.wav
-rw-r--r-- root/root usr/share/ltris/sounds/explosion.wav
-rw-r--r-- root/root usr/share/ltris/sounds/leftright.wav
-rw-r--r-- root/root usr/share/ltris/sounds/motion.wav
-rw-r--r-- root/root usr/share/ltris/sounds/nextlevel.wav
-rw-r--r-- root/root usr/share/ltris/sounds/stop.wav
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/lib/
drwxrwxrwt root/root var/lib/games/

5
ltris/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF35KxcF3yQgR4KavPJ184A7Ven1KsH5tMFKs2yRzyaI6z1dF02yyvfDhU8lAHmm2ok3fsIojYgKvqcYQficSuTwk=
SHA256 (Pkgfile) = 1f630db75ebd552fe606f98a16de1246251b0fbe7b47c7bae1ec17cedc48bca5
SHA256 (.footprint) = f4c51a80cc13e825c57bbd7583a012337e5f96dc7c56f9f5a485604a4b93d07d
SHA256 (ltris-1.2.6.tar.gz) = c23ce21454c0389c5297a7ef2e14efe804d940625e7eeb0386a29780ec2c46f6

26
ltris/Pkgfile Normal file
View File

@ -0,0 +1,26 @@
# Description: the classic game with falling tetrominoes
# URL: https://lgames.sourceforge.io/LTris/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libsdl_mixer
name=ltris
version=1.2.6
release=1
source=(http://prdownloads.sourceforge.net/lgames/ltris-1.2.6.tar.gz)
build() {
cd $name-$version
sed -i "/^icondir =/s/icons/ltris/" Makefile.in
./configure --disable-nls \
--prefix=/usr \
--libexecdir=/usr/lib \
--localstatedir=/var/lib/games \
--runstatedir=/run \
--with-configdir=.config/lgames
make
make DESTDIR=$PKG install
sed -i "/^Icon=/s/icons/ltris/" $PKG/usr/share/applications/ltris.desktop
rm -f $PKG/var/lib/games/ltris.hscr
chmod 1777 $PKG/var/lib/games
}

22
ltris/README Normal file
View File

@ -0,0 +1,22 @@
# LTris requires Xorg
xorg-server is a runtime dependency. ltris will compile just fine
without xorg-server, but being linked to libsdl 1.2 it is restricted to
the video backends supported by libsdl 1.2. Users who want a pure-Wayland
desktop will have to get their tetris fix elsewhere.
# Sharing state on a multi-user system
The world-writable high-score database (/var/lib/games/ltris.hscr) is
omitted from the built package. On a single-user system, the first instance
of running the game (as a nonprivileged user) will create the missing file
with safe permissions, and no further intervention is required.
On a multi-user system, only the first player to launch the game will have
permission to modify the high score list. To allow a shared modifiable list of
high scores, you must first recreate the expected file as follows, and add
each user to the "games" group.
cd /var/lib/games
touch ltris.hscr
chmod 664 ltris.hscr
chown root:games ltris.hscr