alr-repo/node-gyp/lure.sh

24 lines
849 B
Bash

name='node-gyp'
version='10.1.0'
release='2'
desc='Node.js native addon build tool'
homepage='https://github.com/nodejs/node-gyp'
maintainer="Евгений Храмов <xpamych@yandex.ru>"
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"
}