cruxports/maelstrom/Pkgfile
2022-02-05 15:39:19 -05:00

32 lines
1.1 KiB
Plaintext

# Description: navigate a spaceship through an asteroid field with toroidal geometry
# URL: https://www.libsdl.org/projects/Maelstrom
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: sdl2_net
name=maelstrom
Name=Maelstrom
version=3.0.7
release=1
source=(http://libsdl.org/projects/$Name/src/$Name-$version.tar.gz include-time_h.patch struct-button.patch)
build() {
cd "$Name-$version"
patch -p0 < $SRC/include-time_h.patch
patch -p0 < $SRC/struct-button.patch
sed -i -e 's/games\/\$PACKAGE/share\/\$PACKAGE/g' configure
./configure --prefix=/usr
make
install -d $PKG/usr/bin
install -d $PKG/usr/share/$Name/Images
install -m 0755 $Name $PKG/usr/bin/$name
install -m 0644 -t $PKG/usr/share/$Name "${Name}_Fonts"
install -m 0644 -t $PKG/usr/share/$Name "${Name}_Sounds"
install -m 0644 -t $PKG/usr/share/$Name "${Name}_Sprites"
install -m 0644 -t $PKG/usr/share/$Name "icon.bmp"
install -m 0644 -t $PKG/usr/share/$Name "icon.xpm"
install -m 0644 -t $PKG/usr/share/$Name/Images Images/*
}