void-packages/srcpkgs/yquake2/template
2016-12-03 08:38:25 +01:00

29 lines
1.1 KiB
Bash

# Template file for 'yquake2'
pkgname=yquake2
version=6.00
revision=1
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
wrksrc="quake2-${version}"
hostmakedepends="pkg-config"
makedepends="zlib-devel libopenal-devel alsa-lib-devel libjpeg-turbo-devel
SDL2-devel libvorbis-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="An enhanced client for id Software's Quake II (Yamagi Quake II)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.yamagi.org/quake2/"
distfiles="http://deponie.yamagi.org/quake2/quake2-${version}.tar.xz"
checksum=37b6bb7a21d43b17f66ef908b172a3b918b967fafba59c13eecb147d75c45d4c
do_build() {
make ${makejobs} WITH_SYSTEMWIDE=yes WITH_SYSTEMDIR=/usr/share/${pkgname}
}
do_install() {
vbin release/quake2 ${pkgname}
vbin release/q2ded ${pkgname}-q2ded
vinstall release/baseq2/game.so 644 usr/share/${pkgname}/baseq2
vinstall stuff/yq2.cfg 644 usr/share/doc/${pkgname}
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
vinstall stuff/icon/Quake2.png 644 usr/share/pixmaps ${pkgname}.png
}