[arch-commits] Commit in web-ext/repos/community-any (PKGBUILD PKGBUILD)

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Mon Nov 29 14:35:22 UTC 2021


    Date: Monday, November 29, 2021 @ 14:35:22
  Author: yan12125
Revision: 1056807

archrelease: copy trunk to community-any

Added:
  web-ext/repos/community-any/PKGBUILD
    (from rev 1056806, web-ext/trunk/PKGBUILD)
Deleted:
  web-ext/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  126 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 63 insertions(+), 63 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 14:35:08 UTC (rev 1056806)
+++ PKGBUILD	2021-11-29 14:35:22 UTC (rev 1056807)
@@ -1,63 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=web-ext
-# https://github.com/mozilla/web-ext/releases
-pkgver=6.5.0
-pkgrel=1
-pkgdesc='A command line tool to help build, run, and test web extensions'
-arch=(any)
-url='https://developer.mozilla.org/en-US/Add-ons/WebExtensions'
-license=('MPL2')
-# See upstream package.json
-depends=('nodejs>=12.0.0')
-makedepends=('npm' 'node-gyp')
-replaces=('nodejs-web-ext')
-provides=('nodejs-web-ext')
-conflicts=('nodejs-web-ext')
-# to speed up the build
-options=('!strip')
-# tarball on npmjs lacks scripts for building from sources
-source=("https://github.com/mozilla/web-ext/archive/$pkgver/web-ext-$pkgver.tar.gz")
-sha256sums=('c5b93036fe675286cbbd1e92708cb7b214a14b2a6968a362f4d9c9e2634bd7e2')
-
-prepare() {
-  cd "$srcdir"
-
-  # -build for running webpack and tests, and the original for actual packaging
-  cp -r $pkgname-$pkgver{,-build}
-}
-
-build() {
-  cd "$srcdir/$pkgname-$pkgver-build"
-
-  npm install
-  NODE_ENV=production npm run build
-  cp -r dist "$srcdir/$pkgname-$pkgver"
-
-  cd "$srcdir/$pkgname-$pkgver"
-  npm install --production
-}
-
-check() {
-  cd "$srcdir/$pkgname-$pkgver-build"
-
-  # web-ext uses flow-bin, which does not support some architectures (e.g., RISC-V)
-  CI_SKIP_FLOWCHECK=y npm test
-}
-
-package() {
-  local _npmdir="$pkgdir/usr/lib/node_modules/"
-
-  install -Ddm755 "$_npmdir"
-  cp -r --no-preserve=ownership $pkgname-$pkgver "$_npmdir/$pkgname"
-
-  # dtrace-provider (brought in by bunyan) is not used on Linux, and its build artifacts makes this package unreproducible
-  rm -r "$_npmdir"/web-ext/node_modules/dtrace-provider/build/
-
-  # Non-deterministic race in npm gives 777 permissions to random directories.
-  # See https://github.com/npm/cli/issues/1103 for details.
-  find "${pkgdir}/usr" -type d -exec chmod 755 {} +
-
-  install -Ddm755 "$pkgdir/usr/bin"
-  ln -s "/usr/lib/node_modules/$pkgname/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
-}

Copied: web-ext/repos/community-any/PKGBUILD (from rev 1056806, web-ext/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-29 14:35:22 UTC (rev 1056807)
@@ -0,0 +1,63 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=web-ext
+# https://github.com/mozilla/web-ext/releases
+pkgver=6.6.0
+pkgrel=1
+pkgdesc='A command line tool to help build, run, and test web extensions'
+arch=(any)
+url='https://developer.mozilla.org/en-US/Add-ons/WebExtensions'
+license=('MPL2')
+# See upstream package.json
+depends=('nodejs>=12.0.0')
+makedepends=('npm' 'node-gyp')
+replaces=('nodejs-web-ext')
+provides=('nodejs-web-ext')
+conflicts=('nodejs-web-ext')
+# to speed up the build
+options=('!strip')
+# tarball on npmjs lacks scripts for building from sources
+source=("https://github.com/mozilla/web-ext/archive/$pkgver/web-ext-$pkgver.tar.gz")
+sha256sums=('69298390b9cbe37307110a448683fe1ee71a02f3bfc71dbb3ea8c25187fea272')
+
+prepare() {
+  cd "$srcdir"
+
+  # -build for running webpack and tests, and the original for actual packaging
+  cp -r $pkgname-$pkgver{,-build}
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver-build"
+
+  npm install
+  NODE_ENV=production npm run build
+  cp -r dist "$srcdir/$pkgname-$pkgver"
+
+  cd "$srcdir/$pkgname-$pkgver"
+  npm install --production
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver-build"
+
+  # web-ext uses flow-bin, which does not support some architectures (e.g., RISC-V)
+  CI_SKIP_FLOWCHECK=y npm test
+}
+
+package() {
+  local _npmdir="$pkgdir/usr/lib/node_modules/"
+
+  install -Ddm755 "$_npmdir"
+  cp -r --no-preserve=ownership $pkgname-$pkgver "$_npmdir/$pkgname"
+
+  # dtrace-provider (brought in by bunyan) is not used on Linux, and its build artifacts makes this package unreproducible
+  rm -r "$_npmdir"/web-ext/node_modules/dtrace-provider/build/
+
+  # Non-deterministic race in npm gives 777 permissions to random directories.
+  # See https://github.com/npm/cli/issues/1103 for details.
+  find "${pkgdir}/usr" -type d -exec chmod 755 {} +
+
+  install -Ddm755 "$pkgdir/usr/bin"
+  ln -s "/usr/lib/node_modules/$pkgname/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
+}



More information about the arch-commits mailing list