# Contribution from Arch: # Maintainer: Felix Yan pkgname=semver pkgver=5.5.1 pkgrel=2 pkgdesc='The semantic version parser used by npm.' arch=('x86_64') 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) sha512sums=('3eaa40c5fac48654945a07bc770229e2d667436e4320eb61a62687348b61b23105403e84bea50a50333b2fc3b6ad286415c718a35563251d1ca167cd902b9b47') 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 }