void-packages/srcpkgs/pioneer/template

35 lines
1.1 KiB
Bash
Raw Normal View History

# Template file for 'pioneer'
pkgname=pioneer
version=20170813
revision=1
build_style=gnu-configure
hostmakedepends="automake pkg-config"
makedepends="freetype-devel libassimp-devel libsigc++-devel
libvorbis-devel SDL2_image-devel"
depends="desktop-file-utils hicolor-icon-theme libtxc_dxtn"
maintainer="cr6git <quark6@protonmail.com>"
short_desc="Space adventure game set in our galaxy at the turn of the 31st century"
homepage="https://pioneerspacesim.net"
license="GPL-3"
distfiles="https://github.com/pioneerspacesim/pioneer/archive/${version}.tar.gz"
checksum=9a2feec5236f8ca6ee8f0d75bccdee7bf6ae62f7a08b9e37cdd178642fdd32f3
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
}