From a9dbb7b998a7a835838bb67d616308d1c3fd2ecd 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:18:53 +0300 Subject: [PATCH] node-gyp --- node-gyp/lure.sh | 23 +++++++++++++++++++++++ pnpm/lure.sh | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 node-gyp/lure.sh diff --git a/node-gyp/lure.sh b/node-gyp/lure.sh new file mode 100644 index 0000000..93ecf31 --- /dev/null +++ b/node-gyp/lure.sh @@ -0,0 +1,23 @@ +name='node-gyp' +version='10.1.0' +release='2' +desc='Node.js native addon build tool' +homepage='https://github.com/nodejs/node-gyp' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('MIT') +provides=('node-gyp') +conflicts=('node-gyp') + +deps=('nodejs' 'nodejs-nopt' 'python' 'semver') +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" + 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" + install -d "${pkgdir}/usr/share/licenses/node-gyp" + ln -s ../../../lib/node_modules/node-gyp/LICENSE "${pkgdir}/usr/share/licenses/node-gyp/LICENSE" +} diff --git a/pnpm/lure.sh b/pnpm/lure.sh index 769b07f..e865854 100644 --- a/pnpm/lure.sh +++ b/pnpm/lure.sh @@ -9,6 +9,9 @@ license=('MIT') provides=('pnpm') conflicts=('pnpm' 'pnpm-git') +deps=('node-gyp') +build_deps=('git') + sources=("https://github.com/pnpm/pnpm/releases/download/v${version}/pnpm-linux-x64?~archive=false" "git+https://github.com/pnpm/pnpm.git#tag=v${version}?~archive=false") checksums=('SKIP'