# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=libzim pkgver=5.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="meson zlib-dev xz-dev libexecinfo libexecinfo-dev icu-dev xapian-core-dev " checkdepends="gtest gtest-dev python3-dev cython3" 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() { ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md } sha512sums="56845ff14e80800b145305c89e1fc47fbb5210df32886e42b5dec0a1dd4bc9f725cd82a9aa6e46935baefc9cde33e329cb8bb7eb4978c892cec3158d02adc604 libzim-5.0.1.tar.gz"