summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorArjun Nemani2018-07-08 21:02:31 +0530
committerArjun Nemani2018-07-08 21:02:31 +0530
commite5e1921d9b10e302a55189bf9bd99ba4fabc6f27 (patch)
tree25e09fae81e116de13af0de4fc237ff57febc9f1 /PKGBUILD
downloadaur-ramllint.tar.gz
Add npm ramllint to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5e90bb417e0
--- /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: