cruxports/maelstrom/Pkgfile

33 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-02-05 15:39:19 -05:00
# 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
2022-12-26 20:48:38 -05:00
source=(http://libsdl.org/projects/$Name/src/$Name-$version.tar.gz include-time_h.patch struct-button.patch $name.desktop)
2022-02-05 15:39:19 -05:00
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
2022-12-26 20:48:38 -05:00
install -d $PKG/usr/share/applications
2022-02-05 15:39:19 -05:00
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/*
2022-12-26 20:48:38 -05:00
install -m 0644 -t $PKG/usr/share/applications $SRC/$name.desktop
2022-02-05 15:39:19 -05:00
}