desktop/semver/PKGBUILD

23 lines
771 B
Bash
Raw Normal View History

2018-01-09 11:06:09 +08:00
# Contribution from Arch:
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=semver
2018-10-01 01:52:40 +08:00
pkgver=5.5.1
pkgrel=2
2018-01-09 11:06:09 +08:00
pkgdesc='The semantic version parser used by npm.'
2018-10-01 01:52:40 +08:00
arch=('x86_64')
2018-01-09 11:06:09 +08:00
url='https://github.com/npm/node-semver'
license=('ISC')
depends=('nodejs')
makedepends=('npm')
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
noextract=($pkgname-$pkgver.tgz)
2018-10-01 01:52:40 +08:00
sha512sums=('3eaa40c5fac48654945a07bc770229e2d667436e4320eb61a62687348b61b23105403e84bea50a50333b2fc3b6ad286415c718a35563251d1ca167cd902b9b47')
2018-01-09 11:06:09 +08:00
package() {
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s ../../../lib/node_modules/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}