aboutsummaryrefslogtreecommitdiffstats
path: root/community/libzim/APKBUILD
blob: 7746617c1bcffc44e4ab9c88e692f9be518d7afb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=libzim
pkgver=7.2.1
_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
	libexecinfo-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() {
	LDFLAGS="$LDFLAGS -lexecinfo"
	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 -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

sha512sums="
b42f895a331a4de627e05af64f077a916a3c9abd1b5a383f6db384ad7ec92e5fc776d5490ab2abb0e121c85fa6562d0be7aa35eaa12019e389ed6bfa6b80cce4  libzim-7.2.1.tar.gz
be2143c5bfab0b247dfbfe3e5c2bb1b58d786e5802be4f4a62ce694e6467f7713c5ccc1e1d4a933227cfc07016fc9d6ae1249d2d3cb29237a28750922dc671cb  zim-testing-suite-0.4.tar.gz
"