summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorhashworks2018-06-19 21:31:03 +0200
committerhashworks2018-06-19 21:31:03 +0200
commit648bc847c2ac0f212073cdd269473070b4b41690 (patch)
tree24b2578a9a42518f666820ce6716cd1f4a3b2adc /PKGBUILD
downloadaur-648bc847c2ac0f212073cdd269473070b4b41690.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9ad231dca2d
--- /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: