[arch-commits] Commit in semver/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Dec 24 18:53:06 UTC 2019


    Date: Tuesday, December 24, 2019 @ 18:53:05
  Author: felixonmars
Revision: 540003

archrelease: copy trunk to community-testing-any

Added:
  semver/repos/community-testing-any/
  semver/repos/community-testing-any/PKGBUILD
    (from rev 540002, semver/trunk/PKGBUILD)

----------+
 PKGBUILD |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

Copied: semver/repos/community-testing-any/PKGBUILD (from rev 540002, semver/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-12-24 18:53:05 UTC (rev 540003)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=semver
+pkgver=7.1.1
+pkgrel=1
+pkgdesc='The semantic version parser used by npm.'
+arch=('any')
+url='https://github.com/npm/node-semver'
+license=('ISC')
+depends=('nodejs')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('59fb86f9f97a7a1dde676a807fa82807b9e188277b34f5e19b21718a007f4ce910c9e2cff30f06b157a1bed18db67366c9ba33e1381e2b8d01d4a6ea97ff1ce4')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+  # Non-deterministic race in npm gives 777 permissions to random directories.
+  # See https://github.com/npm/npm/issues/9359 for details.
+  chmod -R u=rwX,go=rX "$pkgdir"
+
+  # npm installs package.json owned by build user
+  # https://bugs.archlinux.org/task/63396
+  chown -R root:root "$pkgdir"
+
+  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