Date: Friday, October 21, 2022 @ 11:54:38
  Author: foutrelis
Revision: 1333065

archrelease: copy trunk to community-staging-x86_64

Added:
  libzim/repos/community-staging-x86_64/
  libzim/repos/community-staging-x86_64/PKGBUILD
    (from rev 1333064, libzim/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: libzim/repos/community-staging-x86_64/PKGBUILD (from rev 1333064, 
libzim/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-10-21 11:54:38 UTC (rev 1333065)
@@ -0,0 +1,34 @@
+# Maintainer: Justin Kromlinger <[email protected]>
+pkgname=libzim
+pkgver=8.0.1
+# https://github.com/openzim/zim-testing-suite/releases
+_testing_suite_commit=31ffbefd6699384d80e1f584b69b4321c843bc0c # v0.4
+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=('5cce7a572a06c55f0c651553426fc51e579cd2078a85a00cb2f377390b420eac'
+            '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 meson test
+}
+
+package() {
+       install -Dm644 "${pkgname}-${pkgver}/COPYING" 
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
+       cd "${pkgname}-${pkgver}/build"
+       DESTDIR="${pkgdir}" ninja install
+}

Reply via email to