cruxports/ltris/Pkgfile

27 lines
720 B
Plaintext

# Description: the classic game with falling tetrominoes
# URL: https://lgames.sourceforge.io/LTris/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: sdl_mixer xorg-server
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
}