aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zimwriterfs/APKBUILD
blob: 95ae708152e0401151689a081852d5288534ce5a (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
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=zimwriterfs
pkgver=1.3
pkgrel=0
pkgdesc="Console tool to create ZIM files"
url="https://openzim.org/"
arch="all"
license="GPL-3.0"
makedepends="meson gumbo-parser-dev file-dev libzim-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		. build
	ninja -C build
}

check() {
	cd "$builddir"
	ninja -C build test
}

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

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

sha512sums="6e59be67ef33e3275cdfad050cf39479d664253a14541beb0aac3c74e94898c66b78f746216edb991f05dd440c71e500511cc1a27ebb8e03bca1c62a1fb9c587  zimwriterfs-1.3.tar.gz"