# Template file for 'fossil'
pkgname=fossil
version=2.16
revision=1
build_style=configure
configure_args="--disable-internal-sqlite --prefix=/usr"
hostmakedepends="tcl"
makedepends="zlib-devel openssl-devel readline-devel sqlite-devel"
short_desc="Simple, high-reliability, distributed software configuration management"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://www.fossil-scm.org"
changelog="https://www.fossil-scm.org/home/doc/trunk/www/changes.wiki"
distfiles="https://fossil-scm.org/home/tarball/version-${version}/fossil-${version}.tar.gz"
checksum=1eab740b04d98d2c35776fea65eba86007ea1441d2116943eb0a67e18a88b2fc

post_extract() {
	vsed -i 's/test_system_sqlite$/# &/' auto.def  # failing on cross
}
post_install() {
	vman fossil.1
	vlicense COPYRIGHT-BSD2.txt LICENSE
}
