void-packages/srcpkgs/cc65/template
2020-01-12 04:08:38 +01:00

25 lines
700 B
Bash

# Template file for 'cc65'
pkgname=cc65
version=2.18
revision=1
build_style="gnu-makefile"
make_use_env=yes
short_desc="Freeware C compiler for 6502 based systems"
maintainer="Nathaniel Barragan <nathanielbarragan@gmail.com>"
license="Zlib"
homepage="https://cc65.github.io/"
distfiles="https://github.com/cc65/cc65/archive/V${version}.tar.gz"
checksum=d14a22fb87c7bcbecd8a83d5362d5d317b19c6ce2433421f2512f28293a6eaab
nocross="Build process runs the built binary"
case "$XBPS_TARGET_MACHINE" in
ppc*) broken="../libwrk/apple2enh/dbg.s(675): Error: Newline in string constant";;
esac
pre_build() {
vsed -i src/Makefile -e 's/CC =/CC ?=/' -e 's/AR =/AR ?=/'
}
post_install() {
vlicense LICENSE
}