-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
35 lines (31 loc) · 1.17 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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
}