diff options
author | James An | 2016-09-05 15:33:27 -0400 |
---|---|---|
committer | James An | 2016-09-05 15:33:27 -0400 |
commit | f9e611538c1c3ed6c04b64cad630f920a1c406d3 (patch) | |
tree | 24e0aca800d50d99bb1d6a23668ba36f92cad437 | |
download | aur-f9e611538c1c3ed6c04b64cad630f920a1c406d3.tar.gz |
Initial commit with working package.
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 27 | ||||
-rw-r--r-- | PKGBUILD | 17 |
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fdf9d90b8ea2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = nodejs-ajv + pkgdesc = Another JSON Schema Validator + pkgver = 4.6.1 + pkgrel = 1 + url = https://www.npmjs.com/package/ajv + arch = any + license = MIT + depends = nodejs + depends = npm + noextract = ajv-4.6.1.tgz + source = http://registry.npmjs.org/ajv/-/ajv-4.6.1.tgz + md5sums = SKIP + +pkgname = nodejs-ajv + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..43316bc3c124 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# From: https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore + +*.tar +*.tar.* +*.zip +*.tgz +*.log +*.log.* +*.sig + +# makepkg working folders +pkg +src + +# +# Additional ignore patterns: +# + +# Source files +*.deb +*.gem +*.out +*.rpm +*.html + +# Ignore package source folders +*/* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6c3a3dccb288 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,17 @@ +pkgname=nodejs-ajv # All lowercase +_pkgname=${pkgname#nodejs-} +pkgver=4.6.1 +pkgrel=1 +pkgdesc="Another JSON Schema Validator" +arch=('any') +url="https://www.npmjs.com/package/$_pkgname" +license=('MIT') +depends=('nodejs' 'npm' ) +source=("http://registry.npmjs.org/$_pkgname/-/$_pkgname-$pkgver.tgz") +noextract=("${source[0]##*/}") +md5sums=('SKIP') + +package() { + install -dm755 "$pkgdir/usr/lib/node_modules" + npm install -g --prefix "$pkgdir/usr" "$srcdir/${source[0]##*/}" +} |