summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhashworks2018-06-19 21:31:03 +0200
committerhashworks2018-06-19 21:31:03 +0200
commit648bc847c2ac0f212073cdd269473070b4b41690 (patch)
tree24b2578a9a42518f666820ce6716cd1f4a3b2adc
downloadaur-mwoffliner.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD22
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..66c0ddc82fd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = mwoffliner
+ pkgdesc = Mediawiki/Parsoid HTML snapshot utility and ZIM file builder
+ pkgver = 1.4.1
+ pkgrel = 1
+ url = https://github.com/openzim/mwoffliner#readme
+ arch = any
+ license = GPL3
+ depends = nodejs
+ depends = npm
+ depends = jpegoptim
+ depends = advancecomp
+ depends = gifsicle
+ depends = pngquant
+ depends = imagemagick
+ depends = zimwriterfs
+ depends = redis
+ noextract = mwoffliner-1.4.1.tgz
+ source = https://registry.npmjs.org/mwoffliner/-/mwoffliner-1.4.1.tgz
+ sha1sums = 66286b50574600d73fbede4bd9b3b4f53d496054
+
+pkgname = mwoffliner
+
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: