# Contributor: Paul Bredbury <brebs@sent.com>
pkgname=quakespasm
pkgver=0.93.1
pkgrel=0
pkgdesc="Quake 1 engine"
url="http://quakespasm.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="mesa-dev sdl2-dev libmad-dev libvorbis-dev"
source="https://sourceforge.net/projects/$pkgname/files/Source/$pkgname-$pkgver.tgz"
builddir="$srcdir/$pkgname-$pkgver/Quake"
options="!check" # No test suite

build() {
	make DO_USERDIRS=1 USE_SDL2=1
}

package() {
	install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
	install -Dm 644 "$pkgname.pak" "$pkgdir/usr/share/games/quake/$pkgname.pak"
}

sha512sums="3443d1b6ea75d7b6762a3b26d58d871fcdd4a79f776c0e881b8e0ebca822a3c2b500081cfde26d56f1db019df99439c4a93140139d2b627857fd09381d564751  quakespasm-0.93.1.tgz"
