# Template file for 'kore'
pkgname=kore
version=4.0.0
revision=1
build_style=gnu-makefile
make_use_env=yes
make_build_args="PREFIX=/usr CURL=1 TASKS=1 PGSQL=1 JSONRPC=1 ACME=1"
hostmakedepends="postgresql-libs-devel"
makedepends="libressl-devel libcurl-devel postgresql-libs-devel yajl-devel"
short_desc="Easy to use web platform for writing scalable web APIs in C"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="ISC"
homepage="https://kore.io"
distfiles="https://kore.io/releases/kore-${version}.tar.gz"
checksum=c4f5629c9fca7ede7664063a318021f58c7909cbff822dad8dca88da7d9043c2
disable_parallel_build=yes

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	makedepends+=" musl-legacy-compat"
fi

if [ "$XBPS_TARGET_WORDSIZE" == "32" ]; then
	broken="Requires syscalls not available on 32 bit architectures"
fi

if [ -z "$CROSS_BUILD" ]; then
	makedepends+=" python3-devel"
	make_build_args+="PYTHON=1"
fi

post_install() {
	vlicense LICENSE
}
