summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArjun Nemani2018-07-08 21:02:31 +0530
committerArjun Nemani2018-07-08 21:02:31 +0530
commite5e1921d9b10e302a55189bf9bd99ba4fabc6f27 (patch)
tree25e09fae81e116de13af0de4fc237ff57febc9f1
downloadaur-ramllint.tar.gz
Add npm ramllint 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 000000000000..0e9809a2a68b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ramllint
+ pkgdesc = RAML Lint
+ pkgver = 1.2.6
+ pkgrel = 1
+ url = https://github.com/QuickenLoans/ramllint#readme
+ arch = any
+ depends = nodejs
+ depends = npm
+ noextract = ramllint-1.2.6.tgz
+ source = http://registry.npmjs.org/ramllint/-/ramllint-1.2.6.tgz
+ sha1sums = f392b5b2e0f7ad64cbe0d7a75f0061de7089bb57
+
+pkgname = ramllint
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..5e90bb417e0c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+_npmname=ramllint
+_npmver=1.2.6
+pkgname=ramllint # All lowercase
+pkgver=1.2.6
+pkgrel=1
+pkgdesc="RAML Lint"
+arch=(any)
+url="https://github.com/QuickenLoans/ramllint#readme"
+license=()
+depends=('nodejs' 'npm' )
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha1sums=(f392b5b2e0f7ad64cbe0d7a75f0061de7089bb57)
+
+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: