void-packages/srcpkgs/pioneer/template
2019-01-07 21:08:10 +01:00

41 lines
1.2 KiB
Bash

# Template file for 'pioneer'
pkgname=pioneer
version=20181223
revision=1
build_style=gnu-configure
hostmakedepends="automake pkg-config"
makedepends="freetype-devel libassimp-devel libsigc++-devel
libvorbis-devel SDL2_image-devel"
depends="pioneer-data>=${version}_${revision}"
short_desc="Space adventure game set in our galaxy at the turn of the 31st century"
maintainer="John <johnz@posteo.net>"
license="GPL-3.0-or-later"
homepage="https://pioneerspacesim.net"
distfiles="https://github.com/pioneerspacesim/pioneer/archive/${version}.tar.gz"
checksum=e40cb6a33e519c78c0747638e0503ba7b5a4aadf73a04e33ee5246210b549540
pre_configure() {
export PIONEER_DATA_DIR=/usr/share/pioneer
./bootstrap
}
post_install() {
vinstall ${FILESDIR}/pioneer.desktop 644 usr/share/applications
for icon in application-icon/pngs/*
do
if [[ $icon =~ pioneer-([0-9]+x[0-9]+).png ]]; then
vinstall $icon 644 usr/share/icons/hicolor/${BASH_REMATCH[1]}/apps pioneer.png
fi
done
vinstall application-icon/badge-enlarged-text.svg 644 usr/share/icons/hicolor/scalable/apps pioneer.svg
}
pioneer-data_package() {
short_desc+=" - data"
noarch=yes
pkg_install() {
vmove usr/share/pioneer
}
}