# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=tbftss
pkgver=1.5.1
pkgrel=3
pkgdesc="2D mission-based space shooter"
url="https://github.com/stephenjsweeney/tbftss"
arch="all"
license="GPL-2.0-or-later"
depends="$pkgname-data"
makedepends="sdl2-dev sdl2_image-dev sdl2_mixer-dev sdl2_ttf-dev gettext-dev"
subpackages="$pkgname-lang $pkgname-data::noarch"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/stephenjsweeney/tbftss/archive/v$pkgver.tar.gz
	0001-remove-debug-flags.patch
	"

build() {
	make DATA_DIR=/usr/share/tbftss
}

package() {
	make install \
		DESTDIR="$pkgdir" \
		PREFIX=/usr \
		DATA_DIR=/usr/share/tbftss
}

data() {
	pkgdesc="$pkgdesc (data files)"

	amove usr/share/tbftss/data
}

sha512sums="
3306dfecbcd6bd853f82406bf324167c121fa7afae6d7d1f9933f0de8ba4d842b387f3970771f6d2bb6d37d7e61a96b4f75824c553fe93a3b27959f7176dba37  tbftss-1.5.1.tar.gz
cc087aa8a6ab6c4009592973169d1685ef05feff0d8adb9f936f8b6cf8767542cf1af8b534c39282c7f2eeac5860383f76bed37e5e01dd65bd93c2208f6ed8a7  0001-remove-debug-flags.patch
"
