# Maintainer (AUR): hashworks pkgname=libzim pkgver=4.0.7 pkgrel=1 pkgdesc="Reference implementation of the ZIM specification by the openZIM project" license=('GPL2') arch=(armv7h i686 x86_64) replaces=('zimlib-git') depends=('xapian-core' 'zlib' 'xz' 'icu') makedepends=('meson' 'gtest') url='https://github.com/openzim/libzim' source=("https://github.com/openzim/libzim/archive/${pkgver}.tar.gz") sha256sums=(ede654ffe4ec63aaeb9404010d72e3e6afe6b1dbf34bb0c706a67e094eba4438) build() { cd "${pkgname}-${pkgver}" arch-meson build ninja -C build } check() { cd "${pkgname}-${pkgver}/build" SKIP_BIG_MEMORY_TEST=1 ninja meson-test } package() { cd "${pkgname}-${pkgver}/build" DESTDIR="${pkgdir}" ninja install }