# Template file for 'harec'
pkgname=harec
version=0.26.0
revision=1
archs="x86_64* aarch64* risvc64*"
build_style=gnu-makefile
depends="qbe"
checkdepends="qbe"
short_desc="Hare programming language compiler"
maintainer="kurth4cker <kurth4cker@gmail.com>"
license="GPL-3.0-only"
homepage="https://harelang.org"
distfiles="https://git.sr.ht/~sircmpwn/harec/archive/${version}.tar.gz"
checksum=5581bc16dcf22969c7d33b0f2a9535ba37d4cf1bb39dec252e98ff2781175629

# Temporary solution. Upstream should have internal flag handling to
# not collide with $CFLAGS
CFLAGS="-Iinclude"

do_configure() {
	cp configs/linux.mk config.mk
}
