void-packages/srcpkgs/Maelstrom/template

36 lines
1.2 KiB
Bash

# Template file for 'Maelstrom'
pkgname=Maelstrom
version=3.0.7
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool SDL2_net-devel"
makedepends="SDL2_net-devel"
short_desc="Guide your ship through the Maelstrom asteroid belt"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.libsdl.org/projects/Maelstrom/"
distfiles="https://www.libsdl.org/projects/Maelstrom/src/Maelstrom-${version}.tar.gz"
checksum=93680322f4b04d4727ea8e0b461f259b604dc69e7465cb91d2b9aad378a9a036
broken="Certificate verification failed for /CN=libsdl.org on builders"
CXXFLAGS="-Wno-error -Wno-write-strings -Wno-unused-result"
post_patch() {
awk '/^# KDE Config File$/{p=1;next} /^__EOF__$/{exit} p{print}' Maelstrom.spec.in > Maelstrom.desktop
vsed -i -e 's/\[KDE Desktop Entry\]/[Desktop Entry]/' Maelstrom.desktop
}
pre_configure() {
mv configure.{in,ac}
./autogen.sh
}
post_install() {
make target=${DESTDIR}/usr/share/doc/$pkgname install_gamedocs
vbin Maelstrom
vmkdir usr/share/applications
vinstall Maelstrom.desktop 644 usr/share/applications
vmkdir usr/share/pixmaps
ln -s ../$pkgname/icon.xpm ${DESTDIR}/usr/share/pixmaps/$pkgname.xpm
}