# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=zimwriterfs pkgver=1.3.5 pkgrel=0 pkgdesc="Console tool to create ZIM files" url="https://openzim.org/" arch="all" license="GPL-3.0-or-later" makedepends="meson gumbo-parser-dev file-dev libzim-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ . build ninja -C build } check() { ninja -C build test } package() { DESTDIR="$pkgdir" ninja -C build install install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md } sha512sums="d6dab5636b0970c5edf4f502aa790b5d6052522e60a164194d160f08a185b9e97e6a7ec0f9d72c796e80002f67b10379e123d79375ae0a7a46ed8a0c5990a619 zimwriterfs-1.3.5.tar.gz"