void-packages/srcpkgs/pioneer/template

35 lines
1.1 KiB
Bash
Raw Normal View History

# Template file for 'pioneer'
pkgname=pioneer
2017-10-13 09:27:33 +02:00
version=20171001
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"
2017-10-13 09:27:33 +02:00
checksum=154118bd3dac2f9b8ea43a837bcb967abcc8c3a8ee5ab61d35183bae85e8b0db
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
}