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

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Sun Aug 14 01:46:33 UTC 2022


    Date: Sunday, August 14, 2022 @ 01:46:32
  Author: yan12125
Revision: 1266018

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  118 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 59 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-14 01:45:53 UTC (rev 1266017)
+++ PKGBUILD	2022-08-14 01:46:32 UTC (rev 1266018)
@@ -1,59 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=web-ext
-# https://github.com/mozilla/web-ext/releases
-pkgver=7.1.1
-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 "engines" in https://github.com/mozilla/web-ext/blob/master/package.json
-depends=('nodejs>=14.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=('8bc989c4305f92ff7c2d53dea1e99bf2fa587ba7f16f1ca8f7cfbc5fee973690')
-
-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 lib "$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 -rv "$_npmdir"/web-ext/node_modules/dtrace-provider/build/
-
-  install -Ddm755 "$pkgdir/usr/bin"
-  ln -s "/usr/lib/node_modules/$pkgname/bin/$pkgname.js" "$pkgdir/usr/bin/$pkgname"
-}

Copied: web-ext/repos/community-any/PKGBUILD (from rev 1266017, web-ext/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-14 01:46:32 UTC (rev 1266018)
@@ -0,0 +1,59 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=web-ext
+# https://github.com/mozilla/web-ext/releases
+pkgver=7.2.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 "engines" in https://github.com/mozilla/web-ext/blob/master/package.json
+depends=('nodejs>=14.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=('6950c49516c97d9506a222f7d875a5f4f5b241f2a037ec05a509a46229899a99')
+
+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 lib "$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 -rv "$_npmdir"/web-ext/node_modules/dtrace-provider/build/
+
+  install -Ddm755 "$pkgdir/usr/bin"
+  ln -s "/usr/lib/node_modules/$pkgname/bin/$pkgname.js" "$pkgdir/usr/bin/$pkgname"
+}



More information about the arch-commits mailing list