diff options
author | Oleg Titov <oleg.titov@gmail.com> | 2019-03-21 16:25:00 -0600 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-22 20:04:38 +0000 |
commit | 4765b8db5b833b78f27079624f95edb3ce51520e (patch) | |
tree | 46951a14316ce5f1560de5398a5052fc7605d04a /testing/zimwriterfs | |
parent | bb4c79c6a82791e5823084cbeffcc157ae55c938 (diff) | |
download | aports-4765b8db5b833b78f27079624f95edb3ce51520e.tar.bz2 aports-4765b8db5b833b78f27079624f95edb3ce51520e.tar.xz |
testing/zimwriterfs: new aport
https://openzim.org/
Console tool to create ZIM files
Diffstat (limited to 'testing/zimwriterfs')
-rw-r--r-- | testing/zimwriterfs/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/zimwriterfs/APKBUILD b/testing/zimwriterfs/APKBUILD new file mode 100644 index 0000000000..95ae708152 --- /dev/null +++ b/testing/zimwriterfs/APKBUILD @@ -0,0 +1,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" |