void-packages/srcpkgs/Maelstrom/template

32 lines
977 B
Bash

# Template file for 'Maelstrom'
pkgname=Maelstrom
version=3.0.7
revision=1
wrksrc="${pkgname}-${version%a}"
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="${homepage}/src/${pkgname}-${version}.tar.gz"
checksum=93680322f4b04d4727ea8e0b461f259b604dc69e7465cb91d2b9aad378a9a036
CXXFLAGS="-Wno-error -Wno-write-strings -Wno-unused-result"
pre_configure() {
mv configure.{in,ac}
./autogen.sh
}
post_install() {
make target=${DESTDIR}/usr/share/doc/$pkgname install_gamedocs
vbin Maelstrom
vman ${FILESDIR}/Maelstrom.6
vmkdir usr/share/applications
vinstall ${FILESDIR}/Maelstrom.desktop 644 usr/share/applications
vmkdir usr/share/pixmaps
ln -s ../$pkgname/icon.xpm ${DESTDIR}/usr/share/pixmaps/$pkgname.xpm
}