aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zim-tools
diff options
context:
space:
mode:
Diffstat (limited to 'testing/zim-tools')
-rw-r--r--testing/zim-tools/APKBUILD35
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"