aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zim-tools/APKBUILD
blob: c7044175bdef2b23458ee05176ee10c91dc647ea (plain) (blame)
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.5
pkgrel=2
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=plain

	ninja -C build
}

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

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

sha512sums="90f7597c9c767be45750f0edebec5a852a34d29591481b28b6604f016dfd9493d31422a23bc66fbce9ed3ae17a026be3a73d00896ee2a779d319cca56856032f  zim-tools-1.0.5.tar.gz"