summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArjun Nemani2018-07-09 10:23:00 +0530
committerArjun Nemani2018-07-09 10:23:00 +0530
commitd30927d74b555c9156bee6891c27f37a8e71ea26 (patch)
tree5395869a90cd52350d1884ebb35d6f1482e651ef
downloadaur-textlint-rule-no-dead-link.tar.gz
Add npm textlint-rule-no-dead-link to AUR
-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..f68b40a2f6c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = textlint-rule-no-dead-link
+ pkgdesc = A textlint rule to check if all links are alive
+ pkgver = 4.3.0
+ pkgrel = 1
+ url = https://github.com/textlint-rule/textlint-rule-no-dead-link
+ arch = any
+ depends = nodejs
+ depends = npm
+ noextract = textlint-rule-no-dead-link-4.3.0.tgz
+ source = http://registry.npmjs.org/textlint-rule-no-dead-link/-/textlint-rule-no-dead-link-4.3.0.tgz
+ sha1sums = c6898709e484a6eabc82f0b3a02bc7cd2c64c490
+
+pkgname = textlint-rule-no-dead-link
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9f854e4ddc6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+_npmname=textlint-rule-no-dead-link
+_npmver=4.3.0
+pkgname=textlint-rule-no-dead-link # All lowercase
+pkgver=4.3.0
+pkgrel=1
+pkgdesc="A textlint rule to check if all links are alive"
+arch=(any)
+url="https://github.com/textlint-rule/textlint-rule-no-dead-link"
+license=()
+depends=('nodejs' 'npm' )
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha1sums=(c6898709e484a6eabc82f0b3a02bc7cd2c64c490)
+
+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: