mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
29 lines
915 B
Bash
29 lines
915 B
Bash
# Contributions from Arch
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=node-gyp
|
|
pkgver=3.8.0
|
|
pkgrel=2
|
|
pkgdesc='Node.js native addon build tool'
|
|
arch=('x86_64')
|
|
url='https://github.com/nodejs/node-gyp'
|
|
license=('MIT')
|
|
depends=('nodejs' 'semver')
|
|
makedepends=('npm')
|
|
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
|
|
noextract=($pkgname-$pkgver.tgz)
|
|
sha512sums=('de0f2561e7eb451cef19e4a8c1d24a00aca4b3ca14a4b11dfc3c8f57878c85596127468d699a88acd5083ee1165930283eac8591f1ab33aecc0baf5b6aa9fabc')
|
|
|
|
package() {
|
|
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
|
|
|
|
# Why 777? :/
|
|
chmod -R u=rwX,go=rX "$pkgdir"
|
|
|
|
# Experimental dedup
|
|
rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/semver
|
|
|
|
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
|
ln -s ../../../lib/node_modules/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|