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

Chih-Hsuan Yen yan12125 at archlinux.org
Thu Jun 24 05:11:59 UTC 2021


    Date: Thursday, June 24, 2021 @ 05:11:59
  Author: yan12125
Revision: 967162

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  122 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 61 insertions(+), 61 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-24 05:10:11 UTC (rev 967161)
+++ PKGBUILD	2021-06-24 05:11:59 UTC (rev 967162)
@@ -1,61 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=web-ext
-pkgver=6.1.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=('cb7f55b1b3ab4ecc9c76cb10f52a1e3ff7c31101e6e73a48a8bc55ea104a5ec3')
-
-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"
-
-  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 967161, web-ext/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-06-24 05:11:59 UTC (rev 967162)
@@ -0,0 +1,61 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=web-ext
+pkgver=6.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 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=('0fea52d9ab1c2e4b886983deb57559a75a5979e8e30d09c0939e0970fcb30626')
+
+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"
+
+  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