void-packages/srcpkgs/kiwix-lib/template
2019-09-30 03:06:22 +03:00

34 lines
1,015 B
Bash

# Template file for 'kiwix-lib'
pkgname=kiwix-lib
version=8.1.0
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="icu-devel libzim-devel pugixml-devel xapian-core-devel
libmicrohttpd-devel libcurl-devel Mustache gtest-devel"
short_desc="Common code base for all Kiwix ports"
maintainer="John <johnz@posteo.net>"
license="GPL-3.0-or-later"
homepage="https://www.kiwix.org/"
changelog="https://github.com/kiwix/kiwix-lib/blob/${version}/ChangeLog"
distfiles="https://github.com/kiwix/kiwix-lib/archive/${version}.tar.gz"
checksum=d5e498db7d24b2df3c77ff3521810949204de69793eecf8245b2366b93da27e0
case "$XBPS_TARGET_MACHINE" in
armv6l*)
makedepends+=" libatomic-devel"
LDFLAGS="-latomic"
;;
esac
kiwix-lib-devel_package() {
short_desc+=" - development packages"
depends="pugixml-devel icu-devel xapian-core-devel libzim-devel
libaria2-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/bin
vmove usr/include
}
}