# Maintainer: Daniel Hejduk <danielhejduk@disroot.org>
pkgname=rgbds
pkgver=0.8.0
pkgrel=0
pkgdesc="An assembly toolchain for the Nintendo Game Boy and Game Boy Color"
url="https://rgbds.gbdev.io/"
arch="all"
license="MIT"
makedepends="libpng-dev pkgconfig bison"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gbdev/rgbds/archive/v$pkgver.tar.gz"
options="!check" # No tests avaliable

build() {
	make Q= # If Q variable is cleared it shows build debug information
}

package() {
	make install PREFIX="/usr" DESTDIR="$pkgdir/"
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}

sha512sums="
1c36e0fc7ecfd930c9cbc9f9772d2c7268148e2d456c56c92265ba45b9108c531fc412669d980f6c621b4d89d367458f01a2e0cf20443f13b83f841585f3edac  rgbds-0.8.0.tar.gz
"

