Date: Monday, November 22, 2021 @ 01:52:44 Author: foutrelis Revision: 1054182
archrelease: copy trunk to community-staging-x86_64 Added: libzim/repos/community-staging-x86_64/ libzim/repos/community-staging-x86_64/PKGBUILD (from rev 1054180, libzim/trunk/PKGBUILD) ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Copied: libzim/repos/community-staging-x86_64/PKGBUILD (from rev 1054180, libzim/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-11-22 01:52:44 UTC (rev 1054182) @@ -0,0 +1,33 @@ +# Maintainer: Justin Kromlinger <hashwo...@archlinux.org> +pkgname=libzim +pkgver=7.0.0 +_testing_suite_commit=31ffbefd6699384d80e1f584b69b4321c843bc0c # v0.3 +pkgrel=2 +pkgdesc="Reference implementation of the ZIM specification by the openZIM project" +license=('GPL2') +arch=('x86_64') +depends=('xapian-core' 'zlib' 'xz' 'icu' 'zstd') +makedepends=('meson' 'gtest' 'git') +url='https://github.com/openzim/libzim' +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz" + "git+https://github.com/openzim/zim-testing-suite#commit=${_testing_suite_commit}") +sha256sums=('91702b383d33f4aff0216596cc01b46dc3c6f8d60c069ffd14affa8ff6459f5d' + 'SKIP') + +build() { + cd "${pkgname}-${pkgver}" + arch-meson build \ + -Dtest_data_dir="${srcdir}/zim-testing-suite/data" + ninja -C build +} + +check() { + cd "${pkgname}-${pkgver}/build" + SKIP_BIG_MEMORY_TEST=1 ninja meson-test +} + +package() { + install -Dm644 "${pkgname}-${pkgver}/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING" + cd "${pkgname}-${pkgver}/build" + DESTDIR="${pkgdir}" ninja install +}