community/npm to 7.17.0-1

This commit is contained in:
Kevin Mihelich 2021-06-11 00:01:47 +00:00
parent 6eb492a5b7
commit 10e165b6da

View file

@ -5,20 +5,20 @@
# - comment make in build, comment man mv in package
pkgname=npm
pkgver=7.16.0
pkgver=7.17.0
pkgrel=1
pkgdesc='A package manager for javascript'
arch=('any')
url='https://www.npmjs.com/'
license=('custom:Artistic')
depends=('nodejs' 'node-gyp' 'semver')
depends=('nodejs' 'node-gyp' 'nodejs-nopt' 'semver')
# libgl: TODO
# libvips: for sharp (doc build) (disabled as current version of gatsby imports a broken sharp)
# libxi: for cwebp (doc build)
makedepends=('libgl' 'libxi' 'marked' 'marked-man' 'procps-ng' 'python')
options=('!emptydirs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/cli/archive/v$pkgver.tar.gz")
sha512sums=('7c56c24df7d09aefa3412af9872f25d6608bd830ddfed6fe09a710df04c76aac4581445dd8e4671952b1801a0901659eb2010cdc5abd61ddf33dc3017d911b2a')
sha512sums=('01349884845e84b4cf79162624425ed838552b3e0cf248d5f2bad87cadc10c304a3107fdac3a14d60b177a1aa8816227c8b0fbf0e7fde8d27ab391f5ccbe5246')
prepare() {
cd cli-$pkgver
@ -55,6 +55,7 @@ package() {
_npmdir="$pkgdir"/usr/lib/node_modules/$pkgname
rm -r "$_npmdir"/node_modules/{,.bin/}semver
rm -r "$_npmdir"/node_modules/{,.bin/}node-gyp
rm -r "$_npmdir"/node_modules/{,.bin/}nopt
sed -i 's|../../node_modules/node-gyp/bin/node-gyp.js|../../../node-gyp/bin/node-gyp.js|' \
"$_npmdir"/bin/node-gyp-bin/node-gyp