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