diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-14 20:33:18 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-14 20:36:06 +0200 |
commit | 1f78c5888ead7e0ea7181825ac057f2414243986 (patch) | |
tree | d489ae12ab509f4a8d4ffd952be13c81734617d4 /pcr/libzim | |
parent | d59f7bd3f7e041c5312525204fb9bd4fe9f9748d (diff) | |
download | abslibre-1f78c5888ead7e0ea7181825ac057f2414243986.tar.gz abslibre-1f78c5888ead7e0ea7181825ac057f2414243986.tar.bz2 abslibre-1f78c5888ead7e0ea7181825ac057f2414243986.zip |
pcr: add libzim
This is a dependency of kiwix-tools
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/libzim')
-rw-r--r-- | pcr/libzim/PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pcr/libzim/PKGBUILD b/pcr/libzim/PKGBUILD new file mode 100644 index 000000000..ef9f5aa2e --- /dev/null +++ b/pcr/libzim/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer (AUR): hashworks <mail@hashworks.net> +pkgname=libzim +pkgver=4.0.6 +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=(c0e29491ec56a3d3d39067786ee9604c7fc73e3514709e26c8ea34abc9f6a102) + +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 +} |