void-packages/srcpkgs/astromenace/template

34 lines
1.2 KiB
Bash

# Template file for 'astromenace'
pkgname=astromenace
version=1.4.1
revision=2
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"
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
replaces="astromenace-data>=0"
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
}