41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'pioneer'
|
|
pkgname=pioneer
|
|
version=20180203
|
|
revision=2
|
|
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}"
|
|
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=19aa89e8ec0221b937b9279e0d4897b3016e0ce80858d03600d3e80cd7daa907
|
|
|
|
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
|
|
}
|
|
}
|