43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
# Template file for 'astromenace'
|
|
pkgname=astromenace
|
|
version=1.4.0
|
|
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=6ebbb14d7b2e066a4f35b104185562560614e125498a63631402fbc77d899f35
|
|
|
|
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
|
|
}
|
|
}
|