void-packages/srcpkgs/Maelstrom/template
Jürgen Buchmüller 406b92bc66
Maelstrom: fix gcc82 build
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-08-22 10:39:18 +02:00

32 lines
1,021 B
Bash

# Template file for 'Maelstrom'
pkgname=Maelstrom
version=3.0.6a
revision=2
wrksrc="${pkgname}-${version%a}"
build_style=gnu-configure
hostmakedepends="automake libtool SDL_net-devel"
makedepends="SDL_net-devel"
short_desc="Guide your ship through the Maelstrom asteroid belt"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="https://www.libsdl.org/projects/${pkgname}/"
distfiles="${homepage}/src/${pkgname}-${version}.tar.gz"
checksum=342557bcc89eea57af4272778d3511be95fe46cf75e291298a15caa49a2f0e29
CXXFLAGS="-Wno-error -Wno-write-strings"
pre_configure() {
mv configure.{in,ac}
./autogen.sh
}
post_install() {
make target=${DESTDIR}/usr/share/doc/$pkgname install_gamedocs
# Remove useless file
rm -vf ${DESTDIR}/usr/share/doc/$pkgname/Docs/Makefile
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
}