void-packages/srcpkgs/libzim/template

38 lines
1.4 KiB
Bash

# Template file for 'libzim'
pkgname=libzim
version=8.2.1
revision=1
_testsuite_version=0.4
build_style=meson
build_wrksrc="${pkgname}-${version}"
configure_args="-Dtest_data_dir=${XBPS_BUILDDIR}/${pkgname}-${version}/zim-testing-suite-${_testsuite_version}/data"
hostmakedepends="pkg-config"
makedepends="liblzma-devel $(vopt_if zlib zlib-devel)
$(vopt_if xapian "xapian-core-devel icu-devel")
$(vopt_if zstd libzstd-devel) gtest-devel"
short_desc="Library to read and write ZIM files"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
homepage="https://wiki.openzim.org/wiki/OpenZIM"
changelog="https://raw.githubusercontent.com/openzim/libzim/main/ChangeLog"
distfiles="https://github.com/openzim/libzim/archive/refs/tags/${version}.tar.gz
https://github.com/openzim/zim-testing-suite/archive/refs/tags/v${_testsuite_version}.tar.gz"
checksum="b8296644b04b02c04d2ff1458fed829df39b54e8fd1bcd23c10440e160819f13
7a4f0c773e65be6fe49d3b2159bd9c0f051e8319932ebd3474db0f77f7ea9b27"
make_check_pre="env SKIP_BIG_MEMORY_TEST=1"
patch_args="-Np1 -d ${build_wrksrc}"
build_options="xapian zlib zstd"
build_options_default="xapian zlib zstd"
libzim-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}
$(vopt_if zstd libzstd-devel) $(vopt_if zlib zlib-devel) liblzma-devel"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}