aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zim-tools/APKBUILD
blob: a12bb33ad3d52c510b3015a6e6daf5cb06270043 (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: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=zim-tools
pkgver=1.0.4
pkgrel=0
pkgdesc="Various ZIM command line tools"
url="https://github.com/openzim/zim-tools"
arch="all"
license="GPL-3.0-or-later"
options="!check" # No test suite from upstream
makedepends="meson libzim-dev"
subpackages="$pkgname-doc"
source="zim-tools-$pkgver.tar.gz::https://github.com/openzim/zim-tools/archive/$pkgver.tar.gz"

build() {
	mkdir build

	meson . build \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release

	ninja -C build
}

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

	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" 
}

sha512sums="fe2526a401d5448a46a1248fdbc32df57e93544dd2fd53004adf71e8c8b0fdf2aca9ee8b1d463d0ad50237d07f55a4e0039020e5bf277b905078d20333b2cbf6  zim-tools-1.0.4.tar.gz"