# Contributor: Miles Alan <m@milesalan.com>
# Maintainer: Miles Alan <m@milesalan.com>
pkgname=sdl2_gfx
pkgver=1.0.4
pkgrel=1
pkgdesc="SDL2 graphics drawing primitives and other support functions"
url="https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/"
arch="all"
license="Zlib"
makedepends="sdl2-dev"
subpackages="
	$pkgname-dev
	$pkgname-doc
"
source="http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-$pkgver.tar.gz"
builddir="$srcdir/SDL2_gfx-$pkgver"
options="!check" # Has no tests

prepare() {
	default_prepare
	update_config_guess
	update_config_sub
}

build() {
	./configure --prefix=/usr --disable-mmx
	make
}

package() {
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir/usr/share/doc/$pkgname"
	install -Dm644 Docs/html/* -t "$pkgdir/usr/share/doc/$pkgname"
}

sha512sums="
81a100d3c8c3a7c6bd37a23f1290ff10685f8e62fbecd83b0086aae4edc721483e2153cd4219fbd9168f115eea0ea6b25f9be375faf5761f0babdfb1b52fe482  SDL2_gfx-1.0.4.tar.gz
"
