void-packages/srcpkgs/pioneer/template
2020-01-06 15:46:05 +01:00

42 lines
1.1 KiB
Bash

# Template file for 'pioneer'
pkgname=pioneer
reverts="20191009_1"
version=20190203
revision=3
build_style=cmake
configure_args="-DPIONEER_DATA_DIR=/usr/share/pioneer
-DUSE_SYSTEM_LIBLUA=ON -DUSE_SYSTEM_LIBGLEW=ON"
hostmakedepends="automake pkg-config"
makedepends="freetype-devel libassimp-devel libsigc++-devel
libvorbis-devel SDL2_image-devel glew-devel lua52-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=e526f1659ae321f45b997c0245acecbf9c4cf2122b025ab8db1090f1b9804f5e
disable_parallel_build=yes
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" pioneer-modelcompiler"
fi
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
broken="Not yet implemented"
fi
pioneer-modelcompiler_package() {
short_desc+=" -modelcompiler"
pkg_install() {
vmove usr/bin/modelcompiler
}
}
pioneer-data_package() {
short_desc+=" - data"
archs=noarch
pkg_install() {
vmove usr/share/pioneer
}
}