[arch-commits] Commit in node-gyp/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 16 16:03:31 UTC 2018
Date: Saturday, June 16, 2018 @ 16:03:31
Author: felixonmars
Revision: 343408
archrelease: copy trunk to community-testing-any
Added:
node-gyp/repos/community-testing-any/
node-gyp/repos/community-testing-any/PKGBUILD
(from rev 343407, node-gyp/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: node-gyp/repos/community-testing-any/PKGBUILD (from rev 343407, node-gyp/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-06-16 16:03:31 UTC (rev 343408)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=node-gyp
+pkgver=3.7.0
+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=('a83404fc5b7dc573face9870c78b03d2df9587057bc856a5a0ca5f6cbd909e70d97326a26a45a52ddb4518641f4c0c291477696d1851c558481cdd4e2808e06e')
+
+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
+}
More information about the arch-commits
mailing list