# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=xa
pkgver=2.4.1
pkgrel=0
pkgdesc="cross-assembler and utility suite for 65xx/65816 processors"
url="https://www.floodgap.com/retrotech/xa"
arch="all"
license="GPL-2.0-only"
checkdepends="perl"
subpackages="$pkgname-doc"
source="https://www.floodgap.com/retrotech/xa/dists/xa-$pkgver.tar.gz"

build() {
	make
}

check() {
	make -j1 test
}

package() {
	install -Dm755 xa reloc65 ldo65 file65 printcbm uncpk -t "$pkgdir"/usr/bin
	install -Dm644 man/file65.1 man/ldo65.1 man/printcbm.1 man/reloc65.1 man/uncpk.1 man/xa.1 -t "$pkgdir"/usr/share/man/man1
}

sha512sums="
aaec796bec362ab253abc33320cb36ef879fa661c2091c7e3b2ce96ccc56063c59335fb7eb1d6a3de9486ab8973cbbc71c445e1ef816572a55a1338ffed19dc0  xa-2.4.1.tar.gz
"
