aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kiwix-lib/APKBUILD
blob: 1c9fcc3ae237ee0d7a500ede9db074c621815e19 (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
# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=kiwix-lib
_pkgname=libkiwix
pkgver=9.4.1
pkgrel=0
pkgdesc="Common code base for all Kiwix ports"
url="https://github.com/kiwix/kiwix-lib"
license="GPL-3.0-or-later"
arch="all !mips !mips64" # blocked by libzim
depends="aria2"
makedepends="
	meson gtest-dev
	libzim-dev pugixml-dev mustache xapian-core-dev libmicrohttpd-dev
	python3 curl-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/kiwix/kiwix-lib/archive/$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	meson . build --prefix /usr
	ninja -C build
}

check() {
	ninja -C build meson-test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="95aef7cc016341995c2d3415ac0553d745c8d9345d06df35c269acec7113ff5762cd863756a09d259b64d745b98d7dc8ff898edd805442da0279ee0e0b1b061b  kiwix-lib-9.4.1.tar.gz"