# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=zimwriterfs pkgver=1.3.8 pkgrel=3 pkgdesc="Console tool to create ZIM files" url="https://openzim.org/" arch="all !mips !mips64" # blocked by libzim-dev 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/zimwriterfs/archive/$pkgver.tar.gz" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=plain \ . 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="7e2893f81b68a624a8308ef6fcfcf39eee1e2c3af28d15bb2f42c5dcfd62027eb04eea900407d910379f28ff7cc1bda0035d649c90e8f5dc21c81c0390b87adf zimwriterfs-1.3.8.tar.gz"