Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / node-gyp
Commits: e033763a by Daniel M. Capella at 2023-10-28T17:32:42-04:00 upgpkg: 9.4.1-1 - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,17 @@ +pkgbase = node-gyp + pkgdesc = Node.js native addon build tool + pkgver = 9.4.1 + pkgrel = 1 + url = https://github.com/nodejs/node-gyp + arch = any + license = MIT + makedepends = npm + depends = nodejs + depends = nodejs-nopt + depends = python + depends = semver + noextract = node-gyp-9.4.1.tgz + source = https://registry.npmjs.org/node-gyp/-/node-gyp-9.4.1.tgz + sha512sums = 39091629b8d029b1a431fff1a88d638f2de809380c28969ce7c1b6f9b8d96f77f36ba816d98ac249d31061aa136fbd1caef13ffc69e0af87f40205479aa1ef05 + +pkgname = node-gyp ===================================== PKGBUILD ===================================== @@ -2,7 +2,7 @@ # Maintainer: Caleb Maclennan <[email protected]> pkgname=node-gyp -pkgver=9.4.0 +pkgver=9.4.1 pkgrel=1 pkgdesc='Node.js native addon build tool' arch=('any') @@ -10,20 +10,12 @@ url='https://github.com/nodejs/node-gyp' license=('MIT') depends=('nodejs' 'nodejs-nopt' 'python' 'semver') makedepends=('npm') -source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) -noextract=($pkgname-$pkgver.tgz) -sha512sums=('74c5ec60fea073dad16de8cb5e64db551623007c3ba69b30b0ac8cc6ec49c71387ce5b883b5ac6a7d4ce4208c527ed8c0aa70e7104ce3c1ffc5f086bfbbb3812') +source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") +noextract=("$pkgname-$pkgver.tgz") +sha512sums=('39091629b8d029b1a431fff1a88d638f2de809380c28969ce7c1b6f9b8d96f77f36ba816d98ac249d31061aa136fbd1caef13ffc69e0af87f40205479aa1ef05') package() { - npm install -g --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz - - # Non-deterministic race in npm gives 777 permissions to random directories. - # See https://github.com/npm/npm/issues/9359 for details. - chmod -R u=rwX,go=rX "$pkgdir" - - # npm installs package.json owned by build user - # https://bugs.archlinux.org/task/63396 - chown -R root:root "$pkgdir" + npm install -g --prefix "$pkgdir"/usr $pkgname-$pkgver.tgz # Experimental dedup rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/{,.bin/}nopt View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/node-gyp/-/commit/e033763a31e3a79f7bced45691f3c0c52929cfbb -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/node-gyp/-/commit/e033763a31e3a79f7bced45691f3c0c52929cfbb You're receiving this email because of your account on gitlab.archlinux.org.
