init master
authorVincent Dahmen <wahrwolf@wolfpit.net>
Mon, 3 Dec 2018 10:01:54 +0000 (11:01 +0100)
committerVincent Dahmen <wahrwolf@wolfpit.net>
Mon, 3 Dec 2018 10:01:54 +0000 (11:01 +0100)
PKGBUILD [new file with mode: 0644]

diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644 (file)
index 0000000..063be64
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: wahrwolf[├Ąt]wolfpit.net
+# Contributor: Knut Sveidqvist <knsv@github.com>
+# Contributor: Daneel <aur@gnoulibre.org>
+
+pkgname=nodejs-mermaid-cli-git
+pkgver=7.0.5.r196.ga499296
+pkgrel=1
+pkgdesc='Generation of diagram and flowchart from text in a similar manner as markdown'
+arch=('any')
+url='https://knsv.github.io/mermaid/'
+license=('MIT')
+conflicts=('nodejs-mermaid')
+depends=('phantomjs')
+makedepends=('npm')
+source=('nodejs-mermaid-git::git+https://github.com/mermaidjs/mermaid.cli.git#branch=master')
+md5sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+  cd "$pkgname"
+  npm install -g --user root --prefix "$pkgdir"/usr
+}