summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchilleas Pipinellis2017-03-03 15:47:14 +0100
committerAchilleas Pipinellis2017-03-03 15:47:14 +0100
commitde9c87ae5ca0e6286e00f5508088e2271e551cb3 (patch)
treec675c6bc8a0e1fc4800d41ce0ffbf3af4c9c6b15
downloadaur-nodejs-svgexport.tar.gz
Init commit
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD27
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2d2641e6eb9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = nodejs-svgexport
+ pkgdesc = Node.js module and command-line tool for exporting SVG to PNG and JPEG.
+ pkgver = 0.3.2
+ pkgrel = 1
+ url = https://github.com/shakiba/svgexport
+ arch = any
+ license = MIT
+ makedepends = npm
+ makedepends = phantomjs
+ depends = nodejs
+ provides = nodejs-svgexport
+ noextract = svgexport-0.3.2.tgz
+ source = http://registry.npmjs.org/svgexport/-/svgexport-0.3.2.tgz
+ md5sums = c3c55197f7fde41a62107b63f9947cc7
+
+pkgname = nodejs-svgexport
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..1c3671987b9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*gz
+*xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5f987910a9c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Achilleas Pipinellis <axilleas archlinux.info>
+
+_npmname=svgexport
+_npmver=0.3.2
+pkgname=nodejs-$_npmname
+pkgver=$_npmver
+pkgrel=1
+pkgdesc='Node.js module and command-line tool for exporting SVG to PNG and JPEG.'
+arch=(any)
+url='https://github.com/shakiba/svgexport'
+license=('MIT')
+makedepends=('npm' 'phantomjs')
+depends=('nodejs')
+provides=('nodejs-svgexport')
+source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz")
+noextract=("$_npmname-$_npmver.tgz")
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+}
+
+# vim:set ts=2 sw=2 et:
+md5sums=('c3c55197f7fde41a62107b63f9947cc7')