void-packages/srcpkgs/openspades/template

41 lines
1.6 KiB
Bash

# Template file for 'openspades'
# The OpenSpades-Non-GPL-Pak License states that the pak000-Nonfree.pak
# has to be redistributed together with the binary, so never split it
# into a -data subpackage !!!
pkgname=openspades
version=0.1.3
revision=1
archs="x86_64* i686*"
create_wrksrc=true
build_wrksrc="openspades-${version}"
build_style=cmake
configure_args="-DOPENSPADES_INSTALL_BINARY=bin -DOPENSPADES_RESOURCES=NO"
hostmakedepends="pkg-config unzip zip"
makedepends="SDL2_image-devel freealut-devel freetype-devel glew-devel
libcurl-devel opusfile-devel"
depends="libopenal xdg-utils"
short_desc="Compatible open source client of Ace of Spades 0.75 "
maintainer="John <johnz@posteo.net>"
license="GPL-3.0-or-later, OFL-1.1, OpenSpades-Non-GPL-Pak-License"
homepage="http://openspades.yvt.jp/"
distfiles="https://github.com/yvt/openspades/archive/v${version}.tar.gz
https://github.com/yvt/openspades-paks/releases/download/r33/OpenSpadesDevPackage-r33.zip"
checksum="ecd7aaf568f80712d981ecdd7bf9e380221dc2c16e86d2e56a0ddda87432bea3
0927dc323a0b3aba0ee8d1d68d6b544b00fe654740fead6d1faad37aac77a2ad"
repository=nonfree
nocross="Anglescript doesn't use target Arch"
post_build() {
cd Resources
./mkpak.sh
}
post_install() {
cd ${wrksrc}
vlicense Nonfree/LICENSE.md
vinstall Nonfree/pak000-Nonfree.pak 644 usr/share/games/openspades/Resources
vinstall OfficialMods/font-unifont.pak 644 usr/share/games/openspades/Resources
for _i in pak002-Base.pak pak005-Models.pak pak010-BaseSkin.pak pak050-Locales.pak pak999-References.pak; do
vinstall "${build_wrksrc}/Resources/${_i}" 644 usr/share/games/openspades/Resources
done
}