diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9ad231dca2d5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +pkgname=mwoffliner +pkgver=1.4.1 +pkgrel=1 +pkgdesc="Mediawiki/Parsoid HTML snapshot utility and ZIM file builder" +arch=(any) +url="https://github.com/openzim/mwoffliner#readme" +license=(GPL3) +depends=('nodejs' 'npm' 'jpegoptim' 'advancecomp' 'gifsicle' 'pngquant' 'imagemagick' 'zimwriterfs' 'redis') +optdepends=() +source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) +noextract=($pkgname-$pkgver.tgz) +sha1sums=(66286b50574600d73fbede4bd9b3b4f53d496054) + +package() { + cd $srcdir + local _npmdir="$pkgdir/usr/lib/node_modules/" + mkdir -p $_npmdir + cd $_npmdir + npm install -g --prefix "$pkgdir/usr" $pkgname@$pkgver +} + +# vim:set ts=2 sw=2 et: |