From 1e53f63f05cfa05bb41078658103a2b75561e50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Sat, 20 Apr 2024 13:22:40 +0300 Subject: [PATCH] 1 --- node-gyp/lure.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/node-gyp/lure.sh b/node-gyp/lure.sh index 93ecf31..6d2fd98 100644 --- a/node-gyp/lure.sh +++ b/node-gyp/lure.sh @@ -14,10 +14,13 @@ build_deps=('npm') sources=("https://registry.npmjs.org/node-gyp/-/node-gyp-${version}.tgz?~archive=false") checksums=('SKIP') -package() { - npm install -g --prefix "${pkgdir}/usr node-gyp-${version}.tgz" +prepare() { + cd "${srcdir}" + npm install -g --prefix "${pkgdir}/usr" "node-gyp-${version}.tgz" rm -r "${pkgdir}/usr/lib/node_modules/node-gyp/node_modules/{,.bin/}nopt" rm -r "${pkgdir}/usr/lib/node_modules/node-gyp/node_modules/{,.bin/}semver" +} +package() { install -d "${pkgdir}/usr/share/licenses/node-gyp" ln -s ../../../lib/node_modules/node-gyp/LICENSE "${pkgdir}/usr/share/licenses/node-gyp/LICENSE" }