[arch-commits] Commit in node-gyp/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Mar 24 03:47:16 UTC 2018
Date: Saturday, March 24, 2018 @ 03:47:15
Author: felixonmars
Revision: 311703
archrelease: copy trunk to community-testing-any
Added:
node-gyp/repos/community-testing-any/
node-gyp/repos/community-testing-any/PKGBUILD
(from rev 311702, node-gyp/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: node-gyp/repos/community-testing-any/PKGBUILD (from rev 311702, node-gyp/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-03-24 03:47:15 UTC (rev 311703)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=node-gyp
+pkgver=3.6.2
+pkgrel=1
+pkgdesc='Node.js native addon build tool'
+arch=('any')
+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=('1f68f079354b06c84bfd6eac5abbbd7ff1a6aaea0cca1f738f27ecce77d7d34ab44b95ca2ebac3d4cfa9ca8c2e5f3a7068e72553b7a8dfba4e6909256c50d007')
+
+package() {
+ npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+ rm -r "$pkgdir"/usr/etc
+
+ # 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
+}
More information about the arch-commits
mailing list