void-packages/srcpkgs/libzim/template

36 lines
901 B
Bash

# Template file for 'libzim'
pkgname=libzim
version=3.0.0
revision=1
build_style=meson
hostmakedepends="pkg-config git"
makedepends="liblzma-devel $(vopt_if zlib zlib-devel)
$(vopt_if xapian "xapian-core-devel icu-devel")"
short_desc="Library to read and write ZIM files"
maintainer="John <johnz@posteo.net>"
license="GPL-2"
homepage="http://www.openzim.org/"
distfiles="https://github.com/openzim/libzim/archive/${version}.tar.gz"
checksum=eb2abc7cb99ba67e74004ded48c02fe4c2de40ee19f56896ee79e533af11159c
build_options="zlib xapian"
build_options_default="zlib xapian"
libzim-tools_package() {
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
}
}
libzim-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}
$(vopt_if zlib zlib-devel) liblzma-devel"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}