### this file is sourced not run
PKGVER=0.1.3
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=openspades-$PKGVER.tar.gz
MD5SUM=130a3e6b324c1d5e6993cec0294b9408
SRC_URL=https://github.com/yvt/openspades/archive/v${PKGVER}.tar.gz
BUNDLE=

SLACKREQ='libSDL2 libSDL2-image libopusfile'
SLACKDESC="openspades: openspades $PKGVER (FPS Game)
openspades: 
openspades: OpenSpades is a clone of Ace of Spades 0.75, which is a free online 
openspades: first-person shooter created by Ben Aksoy, featuring fully 
openspades: destructible terrain and plenty of game modes (including the 
openspades: well-known Capture the Flag).
openspades: 
openspades: https://openspades.yvt.jp/
openspades: 
openspades: 
openspades:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	# so that wget works
	echo nameserver 8.8.8.8 > /etc/resolv.conf &&

	MAKEFLAGS=-j1 && # parallel build not supported
	pkg_build_cmake &&
	pkg_build_slackdesc &&

	# binary is installed in /usr/games, symlink it
	ln -sfv /usr/games/openspades /usr/bin/openspades &&

	rm -f /etc/resolv.conf
}


