void-packages/srcpkgs/astromenace/template

42 lines
1.3 KiB
Bash
Raw Normal View History

2015-11-17 19:20:32 +01:00
# Template file for 'astromenace'
pkgname=astromenace
version=1.3.2
revision=2
2015-11-17 19:20:32 +01:00
wrksrc=AstroMenace
build_style=cmake
hostmakedepends="cmake pkg-config"
makedepends="SDL-devel glu-devel libopenal-devel freealut-devel libvorbis-devel
2015-11-17 19:20:32 +01:00
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 OFL-1.1 CC-BY-SA-3.0"
homepage="http://www.viewizard.com/"
distfiles="${SOURCEFORGE_SITE}/openastromenace/${version}/${pkgname}-src-${version}.tar.bz2"
checksum=9b775df2b157565b97aca008dd879b867cd3377c07b829cee6b5342639357fe6
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
2015-11-17 19:20:32 +01:00
do_install() {
vbin build/AstroMenace ${pkgname}
vdoc ReadMe.txt README
vlicense License.txt LICENSE
for size in 64 128; do
vinstall ${wrksrc}/${pkgname}_${size}.png 644 \
usr/share/icons/hicolor/${size}x${size}/apps ${pkgname}.png
done
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
}
astromenace-data_package() {
short_desc+=" - data file"
noarch="yes"
pkg_install() {
vmkdir usr/share/astromenace
vcopy ${wrksrc}/RAW_VFS_DATA usr/share/astromenace
2015-11-17 19:20:32 +01:00
}
}