diff options
author | Oleg Titov <oleg.titov@gmail.com> | 2019-05-20 09:16:28 -0500 |
---|---|---|
committer | TBK <tbk@jjtc.eu> | 2019-05-22 16:01:01 +0200 |
commit | 055500a84411f70d39a32006937ee87828db47c3 (patch) | |
tree | cd80787dc9b18ec3b91943884465995850c4951f /testing/zim-tools | |
parent | 2a319ee5c4497bd9c10ff74b608f967c731e690c (diff) | |
download | aports-055500a84411f70d39a32006937ee87828db47c3.tar.bz2 aports-055500a84411f70d39a32006937ee87828db47c3.tar.xz |
testing/zim-tools: new aport
https://github.com/openzim/zim-tools
Various ZIM command line tools:
zimsearch, zimbench, zimdump, zimdiff, zimpatch, zimsplit, and zimcheck
Closes: GH-7973
Diffstat (limited to 'testing/zim-tools')
-rw-r--r-- | testing/zim-tools/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/zim-tools/APKBUILD b/testing/zim-tools/APKBUILD new file mode 100644 index 0000000000..aeb15b0fcd --- /dev/null +++ b/testing/zim-tools/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Oleg Titov <oleg.titov@gmail.com> +# Maintainer: Oleg Titov <oleg.titov@gmail.com> +pkgname=zim-tools +pkgver=1.0.1 +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 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" +} + +sha512sums="0a4194d25740da3bf6b455e29a8d1c498ac29c7a90060790c4221c6024de90f87c6de11fbf6bee5c14e7d1b80340241d185bd231adac3a761c77568c038dfc2f zim-tools-1.0.1.tar.gz" |