38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# Template file for 'astromenace'
|
|
pkgname=astromenace
|
|
version=1.4.2
|
|
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"
|
|
short_desc="Hardcore 3D space shooter"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=616622cc1da07a7d827c0fb94b90b7c9a36a1e7d1e68002ed3aaf2a12b9a99aa
|
|
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
|
|
|
|
vmkdir usr/share/astromenace
|
|
vcopy gamedata usr/share/astromenace
|
|
|
|
vdoc README.md
|
|
vlicense LICENSE.md
|
|
for size in 64 128; do
|
|
vinstall share/${pkgname}_${size}.png 644 \
|
|
usr/share/icons/hicolor/${size}x${size}/apps ${pkgname}.png
|
|
done
|
|
vinstall share/astromenace.desktop 644 usr/share/applications
|
|
vinstall share/astromenace.appdata.xml 644 usr/share/appdata
|
|
}
|