Date: Sunday, September 12, 2021 @ 03:11:59 Author: yan12125 Revision: 1014418
archrelease: copy trunk to community-any Added: web-ext/repos/community-any/PKGBUILD (from rev 1014417, web-ext/trunk/PKGBUILD) Deleted: web-ext/repos/community-any/PKGBUILD ----------+ PKGBUILD | 123 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 62 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-09-12 03:11:54 UTC (rev 1014417) +++ PKGBUILD 2021-09-12 03:11:59 UTC (rev 1014418) @@ -1,61 +0,0 @@ -# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> - -pkgname=web-ext -pkgver=6.3.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=('90a43edbff403b4d614b91c0d8c667d00ff44644899d2c115cadfb4ce0395e39') - -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 1014417, web-ext/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-09-12 03:11:59 UTC (rev 1014418) @@ -0,0 +1,62 @@ +# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> + +pkgname=web-ext +# https://github.com/mozilla/web-ext/releases +pkgver=6.4.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=('d785e15ca814e4516fde1af8e439094d523638f2d2f4448d6fbd6e2d5e247ec3') + +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" +}