aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libzim/APKBUILD
blob: 98cab175467e2773bde9a29df88a9fe2b649abd1 (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
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=libzim
pkgver=6.1.0
pkgrel=1
pkgdesc="Reference implementation of the ZIM file format"
url="https://openzim.org/"
arch="all !mips !mips64" # tests crash
license="GPL-2.0-or-later"
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
	cython-not-cython3.patch
	"

build() {
	LDFLAGS="$LDFLAGS -lexecinfo"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

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

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

sha512sums="e8135e5de5a518d5d6c6393cc1af8794b6e4fb6f310e37997896c600330d368bb00b8f2cb98ea78d4608dcef7cf78e421002e19b324ef144ac5a6dd5b5ca3fdc  libzim-6.1.0.tar.gz
e2d2e749a6764c0002c123b988b24494ff76547542f17753d04b48f90785e4a92a5bb96a1840e0ebd661a727ecc1eb050679ae0ba1b3fda99410d09ac8e28f27  cython-not-cython3.patch"