Date: Thursday, April 13, 2023 @ 14:15:30
Author: yan12125
Revision: 1445849
archrelease: copy trunk to community-any
Added:
web-ext/repos/community-any/PKGBUILD
(from rev 1445848, web-ext/trunk/PKGBUILD)
Deleted:
web-ext/repos/community-any/PKGBUILD
web-ext/repos/community-any/nodejs19.diff
---------------+
PKGBUILD | 120 ++++++++++++++++++++++++++++----------------------------
nodejs19.diff | 26 ------------
2 files changed, 60 insertions(+), 86 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-13 14:15:13 UTC (rev 1445848)
+++ PKGBUILD 2023-04-13 14:15:30 UTC (rev 1445849)
@@ -1,60 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-
-pkgname=web-ext
-# https://github.com/mozilla/web-ext/releases
-pkgver=7.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 "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=('0c2afcb5658dd65a8146a4850ac04a17155feba3902fc0fecbc726d05005dd34')
-
-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)
- # Some tests match error messages and fail if messages are translated
- LANG=C.UTF-8 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 1445848,
web-ext/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-13 14:15:30 UTC (rev 1445849)
@@ -0,0 +1,60 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=web-ext
+# https://github.com/mozilla/web-ext/releases
+pkgver=7.6.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=('136f08a4fcbb902a9d12507b64346266395aa3e3df107e344286d57cbcf8abc8')
+
+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)
+ # Some tests match error messages and fail if messages are translated
+ LANG=C.UTF-8 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"
+}
Deleted: nodejs19.diff
===================================================================
--- nodejs19.diff 2023-04-13 14:15:13 UTC (rev 1445848)
+++ nodejs19.diff 2023-04-13 14:15:30 UTC (rev 1445849)
@@ -1,26 +0,0 @@
-diff --git a/tests/unit/test-cmd/test.build.js
b/tests/unit/test-cmd/test.build.js
-index 9a63278..97e1295 100644
---- a/tests/unit/test-cmd/test.build.js
-+++ b/tests/unit/test-cmd/test.build.js
-@@ -269,7 +269,7 @@ describe('build', () => {
- assert.instanceOf(error, UsageError);
- assert.match(
- error.message,
-- /Unexpected string in JSON at position 14/
-+ /Expected ':' after property name in JSON at position 14/
- );
- assert.match(error.message, /^Error parsing messages\.json/);
- assert.include(error.message, messageFileName);
-diff --git a/tests/unit/test-util/test.manifest.js
b/tests/unit/test-util/test.manifest.js
-index 7e9e17a..5fc665e 100644
---- a/tests/unit/test-util/test.manifest.js
-+++ b/tests/unit/test-util/test.manifest.js
-@@ -70,7 +70,7 @@ describe('util/manifest', () => {
- );
- assert.include(
- error.message,
-- 'Unexpected token "," (0x2C) in JSON at position 51'
-+ 'Expected double-quoted property name in JSON at position 51'
- );
- assert.include(error.message, manifestFile);
- })