[arch-commits] Commit in bower/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:02:02 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:02:02
  Author: felixonmars
Revision: 658324

archrelease: copy trunk to community-staging-any

Added:
  bower/repos/community-staging-any/
  bower/repos/community-staging-any/LICENSE
    (from rev 658323, bower/trunk/LICENSE)
  bower/repos/community-staging-any/PKGBUILD
    (from rev 658323, bower/trunk/PKGBUILD)

----------+
 LICENSE  |   19 +++++++++++++++++++
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

Copied: bower/repos/community-staging-any/LICENSE (from rev 658323, bower/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2020-07-07 13:02:02 UTC (rev 658324)
@@ -0,0 +1,19 @@
+Copyright (c) 2015 Twitter and other contributors
+
+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: bower/repos/community-staging-any/PKGBUILD (from rev 658323, bower/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 13:02:02 UTC (rev 658324)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Micha Alt <micha.tucker at gmail.com> 
+# Contributor: FadeMind <fademind at gmail.com>
+# Contributor: Tom Vincent <http://tlvince.com/contact>
+
+pkgname=bower
+pkgver=1.8.8
+pkgrel=2
+pkgdesc='A package manager for the web'
+arch=('any')
+url='https://bower.io/'
+license=('MIT')
+depends=('nodejs' 'semver' 'uglify-js')
+makedepends=('npm' 'git')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz
+        LICENSE)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('d52ac99d79e43fdb282131e9b523be6a1c7740aa77715ce7f29a08eae8ea73949e3a48398aa335a4af47f8349cd8e43c4a73b48c2fcd1b852bfd4230cbbe7be0'
+            'a932f56639679947f1ce67ca7c27855ae08257876880864079077db825fa402ac7d544a192e02683d38de60ed9ac708a366e05c81bd350ace1440c1588086bc1')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/lib/node_modules
+  for dep in semver uglify-js; do
+    rm -r $dep;
+  done
+
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/lib/node_modules/package-json/node_modules
+  for dep in semver; do
+    rm -r $dep;
+  done
+
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/lib/node_modules/semver-diff/node_modules
+  for dep in semver; do
+    rm -r $dep;
+  done
+}


More information about the arch-commits mailing list