1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/libzim/APKBUILD

49 lines
1.4 KiB
Text

# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=libzim
pkgver=8.1.0
_testing_suite_ver=0.4
pkgrel=0
pkgdesc="Reference implementation of the ZIM file format"
url="https://openzim.org/"
arch="all"
license="GPL-2.0-or-later"
options="!check" #temporary disable tests
makedepends="
icu-dev
meson
xapian-core-dev
xz-dev
zlib-dev
zstd-dev
"
checkdepends="
cython
gtest-dev
python3-dev
"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/libzim/archive/$pkgver.tar.gz
https://github.com/openzim/zim-testing-suite/releases/download/v$_testing_suite_ver/zim-testing-suite-$_testing_suite_ver.tar.gz
"
build() {
abuild-meson . output \
-Dtest_data_dir="$srcdir/zim-testing-suite/data"
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
SKIP_BIG_MEMORY_TEST=1 meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}
sha512sums="
cd7fa2070c89dd4c24d53b39da243fde88655a480e4ca236576a6b497e994aeb50f13beb2b87c270b89ad82b81e9609a9890fe25c943d26523bc21483d9d647e libzim-8.1.0.tar.gz
be2143c5bfab0b247dfbfe3e5c2bb1b58d786e5802be4f4a62ce694e6467f7713c5ccc1e1d4a933227cfc07016fc9d6ae1249d2d3cb29237a28750922dc671cb zim-testing-suite-0.4.tar.gz
"