# Template file for 'kiwix-lib'
pkgname=kiwix-lib
version=14.0.0
revision=3
build_style=meson
hostmakedepends="pkg-config"
makedepends="icu-devel libzim-devel pugixml-devel xapian-core-devel
 libmicrohttpd-devel libcurl-devel Mustache zlib-devel"
depends="aria2"
checkdepends="gtest-devel"
short_desc="Common code base for all Kiwix ports"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://www.kiwix.org/"
changelog="https://raw.githubusercontent.com/kiwix/libkiwix/main/ChangeLog"
distfiles="https://github.com/kiwix/libkiwix/archive/refs/tags/${version}.tar.gz"
checksum=dae329ebc08ff510daa50b42de71366bf063813e29bf1c09cc49335d90f32094

kiwix-lib-devel_package() {
	short_desc+=" - development files"
	depends="pugixml-devel icu-devel xapian-core-devel libzim-devel
	 libaria2-devel libmicrohttpd-devel ${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/lib/*.so
		vmove usr/lib/pkgconfig
		vmove usr/bin
		vmove usr/share/man
		vmove usr/include
	}
}
