summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Chr├ętien2015-08-27 11:25:23 +0900
committerBenjamin Chr├ętien2015-08-27 11:25:23 +0900
commit0bbc7e5bccc8d08f40f149039ab710c4172e4301 (patch)
tree21a422d75e475e700b4bbcb7d59c0f6aa7a38cf5
downloadaur-0bbc7e5bccc8d08f40f149039ab710c4172e4301.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD24
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..60761d9ec37
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = nodejs-doctoc
+ pkgdesc = Generates TOC for markdown files of local git repo.
+ pkgver = 0.15.0
+ pkgrel = 1
+ url = https://github.com/thlorenz/doctoc
+ arch = any
+ depends = nodejs
+ depends = npm
+ noextract = doctoc-0.15.0.tgz
+ source = http://registry.npmjs.org/doctoc/-/doctoc-0.15.0.tgz
+ sha1sums = 0a7a48e437a0efa98728a430ada124dd95039c0b
+
+pkgname = nodejs-doctoc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..648a3687d7e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+_npmname=doctoc
+_npmver=0.15.0
+pkgname=nodejs-doctoc # All lowercase
+pkgver=0.15.0
+pkgrel=1
+pkgdesc="Generates TOC for markdown files of local git repo."
+arch=(any)
+url="https://github.com/thlorenz/doctoc"
+license=()
+depends=('nodejs' 'npm' )
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha1sums=(0a7a48e437a0efa98728a430ada124dd95039c0b)
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+}
+
+# vim:set ts=2 sw=2 et: