void-packages/srcpkgs/astromenace/template

43 lines
1.4 KiB
Bash

# Template file for 'astromenace'
pkgname=astromenace
version=1.4.1
revision=1
build_style=cmake
configure_args="-DDATADIR=/usr/share/astromenace -DDONTCREATEVFS=TRUE"
hostmakedepends="pkg-config"
makedepends="SDL2-devel glu-devel libopenal-devel freealut-devel libvorbis-devel
fontconfig-devel freetype-devel libXinerama-devel"
depends="astromenace-data>=${version}_${revision}"
short_desc="Hardcore 3D space shooter"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-3.0-or-later, OFL-1.1, CC-BY-SA-3.0"
homepage="http://www.viewizard.com/"
distfiles="https://github.com/viewizard/astromenace/archive/v${version}.tar.gz"
checksum=0aca5211c9f333acf698807f597e5ad8e9d1455ba8ad202940890bff5b6c9507
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DOPENGL_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/GL"
configure_args+=" -DOPENGL_gl_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libGL.so.1"
fi
do_install() {
vbin build/astromenace ${pkgname}
vdoc README.md README
vlicense LICENSE.md LICENSE
for size in 64 128; do
vinstall share/${pkgname}_${size}.png 644 \
usr/share/icons/hicolor/${size}x${size}/apps ${pkgname}.png
done
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
vinstall share/astromenace.appdata.xml 644 usr/share/appdata
}
astromenace-data_package() {
short_desc+=" - data file"
archs=noarch
pkg_install() {
vmkdir usr/share/astromenace
vcopy ${wrksrc}/gamedata usr/share/astromenace
}
}