1
This commit is contained in:
parent
a9dbb7b998
commit
1e53f63f05
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user