diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-04-27 18:24:59 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-04-27 18:24:59 (GMT) |
commit | b7089615ed1163965ecc396c7d6b4c5435308d41 (patch) | |
tree | 690250ae99b7a117bc011c4ebe6e383c0efcead5 /abs/extra | |
parent | b0634db88352a3d54ca3f5ae2f47ff0690fcba1a (diff) | |
download | linhes_pkgbuild-b7089615ed1163965ecc396c7d6b4c5435308d41.zip linhes_pkgbuild-b7089615ed1163965ecc396c7d6b4c5435308d41.tar.gz linhes_pkgbuild-b7089615ed1163965ecc396c7d6b4c5435308d41.tar.bz2 |
semver: initial inclusion; dep of npm
Diffstat (limited to 'abs/extra')
-rw-r--r-- | abs/extra/semver/PKGBUILD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/abs/extra/semver/PKGBUILD b/abs/extra/semver/PKGBUILD new file mode 100644 index 0000000..0840974 --- /dev/null +++ b/abs/extra/semver/PKGBUILD @@ -0,0 +1,23 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgname=semver +pkgver=5.1.0 +pkgrel=1 +pkgdesc='The semantic version parser used by npm.' +arch=('any') +url='https://github.com/npm/node-semver' +license=('ISC') +depends=('nodejs') +makedepends=('npm') +source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) +noextract=($pkgname-$pkgver.tgz) +md5sums=('45488e5d3a4008fee2dda2eaf002392c') + +package() { + npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz + rm -r "$pkgdir"/usr/etc + + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s ../../../lib/node_modules/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |