[arch-commits] Commit in babel-cli/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 11 08:53:14 UTC 2019
Date: Wednesday, December 11, 2019 @ 08:53:14
Author: felixonmars
Revision: 536751
archrelease: copy trunk to community-testing-any
Added:
babel-cli/repos/community-testing-any/
babel-cli/repos/community-testing-any/LICENSE
(from rev 536749, babel-cli/trunk/LICENSE)
babel-cli/repos/community-testing-any/PKGBUILD
(from rev 536749, babel-cli/trunk/PKGBUILD)
----------+
LICENSE | 22 ++++++++++++++++++++++
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+)
Copied: babel-cli/repos/community-testing-any/LICENSE (from rev 536749, babel-cli/trunk/LICENSE)
===================================================================
--- community-testing-any/LICENSE (rev 0)
+++ community-testing-any/LICENSE 2019-12-11 08:53:14 UTC (rev 536751)
@@ -0,0 +1,22 @@
+Copyright (c) 2014-2015 Sebastian McKenzie <sebmck at gmail.com>
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copied: babel-cli/repos/community-testing-any/PKGBUILD (from rev 536749, babel-cli/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-12-11 08:53:14 UTC (rev 536751)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Mario Finelli <mario dot finelli at yahoo dot com>
+# Contributor: Andy Weidenbaum <archbaum at gmail dot com>
+# Contributor: Peter Wu <lekensteyn at gmail dot com>
+
+pkgname=babel-cli
+pkgver=7.7.5
+pkgrel=1
+pkgdesc="A compiler for writing next generation JavaScript"
+arch=('any')
+url="https://babeljs.io/"
+license=('MIT')
+depends=('nodejs' 'semver')
+makedepends=('npm')
+provides=('nodejs-babel-cli')
+conflicts=('nodejs-babel-cli' 'openbabel')
+replaces=('nodejs-babel-cli')
+source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/@babel/cli/-/@babel/cli-$pkgver.tgz"
+ LICENSE)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('cb662b3065ccdcd532bb5332834a7183e2f1ea0f17844caf2c760d4704c157a7c37a4dc7ec8a3a6fb37f2d7b1c2ece075a7e07c4c772edfdab335ad3329da616'
+ 'fc5471459770967e2632efb110b8370caa3424b7d87c1180f49605f7e6b1593746888b6c99c713c0c3046c5833c01c1a15bf3d549a343eaa077885bcc9f3d4e3')
+
+package() {
+ npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ rm -r "$pkgdir"/usr/lib/node_modules/@babel/cli/node_modules/{,.bin/}semver
+
+ # 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"
+}
More information about the arch-commits
mailing list