[arch-commits] Commit in babel-core/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 11 08:58:32 UTC 2019
Date: Wednesday, December 11, 2019 @ 08:58:32
Author: felixonmars
Revision: 536760
archrelease: copy trunk to community-any
Added:
babel-core/repos/community-any/
babel-core/repos/community-any/LICENSE
(from rev 536759, babel-core/trunk/LICENSE)
babel-core/repos/community-any/PKGBUILD
(from rev 536759, babel-core/trunk/PKGBUILD)
----------+
LICENSE | 22 ++++++++++++++++++++++
PKGBUILD | 31 +++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
Copied: babel-core/repos/community-any/LICENSE (from rev 536759, babel-core/trunk/LICENSE)
===================================================================
--- community-any/LICENSE (rev 0)
+++ community-any/LICENSE 2019-12-11 08:58:32 UTC (rev 536760)
@@ -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-core/repos/community-any/PKGBUILD (from rev 536759, babel-core/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2019-12-11 08:58:32 UTC (rev 536760)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=babel-core
+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')
+source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/@babel/core/-/@babel/core-$pkgver.tgz"
+ LICENSE)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('338dbe49c378fb54bd881e9ff932fb401a684044f16dc971f8a3682890018219ca604f9f333486aacb7405925cf02a48eb6e5bc0fc18814c91bf167ed26673a7'
+ '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/core/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