# Contribution from Arch: # Maintainer: Felix Yan pkgname=semver pkgver=5.5.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=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) noextract=($pkgname-$pkgver.tgz) sha512sums=('e12277766d160305b2fcd55e8a8661e409ed91d26858ac47c5c9b23fadb67ce9201dae33dd1d137412480883726920c4eae37055cf2066bf998a7c19007e3120') 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 }