diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -1,25 +1,23 @@ -# Maintainer: Justin Dray <justin@dray.be> +# Maintainer: Caleb Maclennan <caleb@alerque.com> +# Contributor: Justin Dray <justin@dray.be> # Contributor: Florent Peterschmitt _npmname=jsonlint -pkgname=nodejs-jsonlint # All lowercase -pkgver=1.6.2 -pkgrel=2 -pkgdesc="Validate JSON" +pkgname=nodejs-${_npmname} +pkgver=1.6.3 +pkgrel=1 +pkgdesc='Validate JSON' arch=(any) -url="http://zaach.github.com/jsonlint/" +url='http://zaach.github.com/jsonlint/' license=('MIT') depends=('nodejs' 'npm') makedepends=('nodejs') -source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) +source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz") noextract=($_npmname-$pkgver.tgz) -md5sums=('4849a84bcf4864bd61c552711979e8cd') +sha256sums=('987f42f0754b7bc0c84967b81fc2b4db0ed2ebe2117ccc5a5faa59e462447723') package() { - cd $srcdir - local _npmdir="$pkgdir/usr/lib/node_modules/" - mkdir -p $_npmdir - cd $_npmdir - npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver + npm install -g --prefix $pkgdir/usr $_npmname-$pkgver.tgz + rmdir $pkgdir/usr/etc } |