# Template file for 'libcello'
pkgname=libCello
version=2.1.0
revision=1
short_desc="Higher level programming in C"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://www.libcello.org/"
license="BSD"
distfiles="http://$pkgname.org/static/$pkgname-$version.tar.gz"
checksum=49acf6525ac6808c49f2125ecdc101626801cffe87da16736afb80684b172b28

post_configure() {
	# There is no include <execinfo.h> in musl libc
	sed -e "s;defined(__unix__);(defined(__unix__) \&\& defined(__GLIBC__));" \
		-i src/Exception.c
}
do_build() {
	sed -i 's,CFLAGS =,CFLAGS +=,' Makefile
	make CC=$CC ${makejobs}
}
do_install() {
	make PREFIX=${DESTDIR}/usr install
}
post_install() {
	vlicense LICENSE.md LICENSE
}
