void-packages/srcpkgs/xa/template

21 lines
548 B
Bash

# Template file for 'xa'
pkgname=xa
version=2.3.7
revision=2
short_desc="6502 cross assembler"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-2"
homepage="http://www.floodgap.com/retrotech/xa/"
distfiles="http://www.floodgap.com/retrotech/xa/dists/xa-${version}.tar.gz"
checksum=34e792c159584153f5b5a246ae5d2142dfc92a20b673ea8c9e04584bde594442
post_extract() {
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' misc/Makefile
}
do_build() {
make CC=$CC LD=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}
do_install() {
make DESTDIR="$DESTDIR/usr" install
}