# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=grfcodec
pkgver=6.0.6
pkgrel=0
pkgdesc="Tool for manipulating OpenTTD GRF files"
url="https://dev.openttdcoop.org/projects/grfcodec"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-only"
depends=""
makedepends="boost-dev"
subpackages="$pkgname-doc"
source="https://binaries.openttd.org/extra/grfcodec/$pkgver/grfcodec-$pkgver-source.tar.xz
	va_copy.patch
	"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make prefix=/usr DESTDIR="$pkgdir" install
}

sha512sums="543123c794bfdb5b6556f7a897bcd2f3bdd09be8ad6a4ff07b138e0cac62621a4801c732bb20099c1bb383ad5822fc4ade276d49acf2744c811edd10d7699480  grfcodec-6.0.6-source.tar.xz
4e7034132f889ac62b82d08dae8c928c8a7efd5a0c3dc0d3f35d6c394fb78082a37a22678c5a428489bd26608d868054131a14fb10201d5ce478d46eb9c96890  va_copy.patch"