summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c3a3dccb28882b7e67f7a47b347e1926ca55f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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]##*/}"
}