# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=libzim pkgver=5.0.0 pkgrel=2 pkgdesc="Reference implementation of the ZIM file format" url="https://openzim.org/" arch="all" license="GPL-2.0-or-later" makedepends="meson zlib-dev xz-dev libexecinfo libexecinfo-dev icu-dev xapian-core-dev gtest-dev python3-dev cython " checkdepends="gtest" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/$pkgname/archive/$pkgver.tar.gz" build() { LDFLAGS=-lexecinfo meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ . output ninja -C output } check() { SKIP_BIG_MEMORY_TEST=1 ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md } sha512sums="b1d5bee583364dcd7967e3b826afb08bea25a11512b7a522cb74cde25ae304d4b7f65354ec2160599d145c5b67ba26109e281482021ba1d8d88a1041c0c785d9 libzim-5.0.0.tar.gz"