# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=libzim pkgver=4.0.6 pkgrel=0 pkgdesc="Reference implementation of the ZIM file format" url="https://openzim.org/" arch="all" license="GPL-2.0" makedepends="meson zlib-dev xz-dev libexecinfo libexecinfo-dev icu-dev xapian-core-dev gtest gtest-dev python3-dev" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" 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() { cd "$builddir" DESTDIR="$pkgdir" ninja -C output install install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md } sha512sums="163777ec1e3935b1e71cc30c72a5645c8519592ad30aa544b08fbdfc0f5c50a7d4199d9038028209fa9accc0e2264008aa8931c49e831273ce2b9a6c4062ad37 libzim-4.0.6.tar.gz"