# Template file for 'afflib'
pkgname=afflib
version=3.7.22
revision=1
build_style=gnu-configure
configure_args="--enable-threading"
hostmakedepends="which autoconf automake libtool"
makedepends="zlib-devel fuse3-devel openssl ncurses-devel readline-devel libcurl-devel expat-devel "
short_desc="Advanced Forensics Format Library"
maintainer="cbaulesch <christophe@baulesch.com>"
license="BSD-4-Clause OR Public Domain"
homepage="https://github.com/sshock/AFFLIBv3/tree/master"
changelog="https://github.com/sshock/AFFLIBv3/releases"
distfiles="https://github.com/sshock/AFFLIBv3/archive/refs/tags/v${version}.tar.gz"
checksum=67481fc520ff927bf61aea0bf2d660feb73e24cc329335bebb064f8f12115dcb

pre_configure() {
	./bootstrap.sh
}

post_install() {
	vlicense COPYING LICENSE
	vdoc doc/FAQ.txt
	vdoc doc/affdoc.doc
	vdoc doc/crypto_doc.txt
}

afflib-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
