summaryrefslogtreecommitdiff
path: root/community/kiwix-lib/APKBUILD
blob: 8ea36f06c3d9a91871092fd6574354969cb4cbc5 (plain)
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
# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=kiwix-lib
_pkgname=libkiwix
pkgver=11.0.0
pkgrel=1
pkgdesc="Common code base for all Kiwix ports"
url="https://github.com/kiwix/libkiwix"
license="GPL-3.0-or-later"
arch="all"
depends="aria2"
makedepends="
	curl-dev
	gtest-dev
	icu-data-full
	libmicrohttpd-dev
	libzim-dev
	meson
	mustache
	pugixml-dev
	python3
	samurai
	xapian-core-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/kiwix/libkiwix/archive/$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	abuild-meson . build
	ninja -C build
}

check() {
	meson test -v --no-rebuild -C build
}

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

sha512sums="
2f9f23011e18e7f7f753a9e8399f423a98c613abd3df03026b126d71510f47b90ff4986eb91cbd25f52a1f079753ad5e127d4be135edfbd3e4155798bfdf5ae5  kiwix-lib-11.0.0.tar.gz
"