void-packages/srcpkgs/xa/template

20 lines
612 B
Bash

# Template file for 'xa'
pkgname=xa
version=2.3.11
revision=1
build_style=gnu-makefile
make_check_target="test"
checkdepends="perl"
short_desc="6502/R65C02/65816 cross-assembler"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.floodgap.com/retrotech/xa/"
distfiles="https://www.floodgap.com/retrotech/xa/dists/xa-${version}.tar.gz"
checksum=32f2164c99e305218e992970856dd8e2309b5cb6ac4758d7b2afe3bfebc9012d
post_extract() {
vsed -i 's/${LD}/${CC}/' src/Makefile
vsed -i '/CC.*-o/s/$/ $(LDFLAGS)/' misc/Makefile
vsed -i 's/\($(DESTDIR)\)/\1$(PREFIX)/g' Makefile
}