void-packages/srcpkgs/Maelstrom/template
2016-10-10 18:47:29 +02:00

30 lines
979 B
Bash

# Template file for 'Maelstrom'
pkgname=Maelstrom
version=3.0.6a
revision=1
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
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
}