Date: Sunday, November 7, 2021 @ 00:10:10 Author: polyzen Revision: 1037952
archrelease: copy trunk to community-any Added: dark-reader/repos/community-any/PKGBUILD (from rev 1037951, dark-reader/trunk/PKGBUILD) Deleted: dark-reader/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-11-07 00:09:47 UTC (rev 1037951) +++ PKGBUILD 2021-11-07 00:10:10 UTC (rev 1037952) @@ -1,52 +0,0 @@ -# Maintainer: Daniel M. Capella <poly...@archlinux.org> -# Contributor: Cookie Engineer <cookiengin...@protonmail.ch> - -pkgname=('dark-reader' 'firefox-dark-reader' 'thunderbird-dark-reader') -pkgbase=dark-reader -pkgver=4.9.41 -pkgrel=1 -pkgdesc='Inverts brightness of web pages and aims to reduce eyestrain while browsing the web' -arch=('any') -url=https://darkreader.org/ -license=('MIT') -makedepends=('npm' 'strip-nondeterminism') -source=("https://github.com/darkreader/darkreader/archive/v$pkgver/darkreader-$pkgver.tar.gz") -b2sums=('650f94de833936057611f10edb1e811d8cbb82770cc7709ec269ceb8509f0346d052201d589e2a22c90faffbce4e5fcb0f53cb3649b67208e5fc90ce7be4d5fc') - -prepare() { - cd darkreader-$pkgver - npm ci -} - -build() { - cd darkreader-$pkgver - npm run build - strip-nondeterminism -t zip build/release/*.xpi -} - -check() { - cd darkreader-$pkgver - npm test -} - -package_dark-reader() { - pkgdesc+=' (unpacked webextension)' - cd darkreader-$pkgver/build/release/chrome - install -d "$pkgdir"/usr/lib/$pkgbase - cp -r -- * "$pkgdir"/usr/lib/$pkgbase -} - -package_firefox-dark-reader() { - groups=('firefox-addons') - cd darkreader-$pkgver/build/release - install -Dm644 darkreader-firefox.xpi \ - "$pkgdir"/usr/lib/firefox/browser/extensions/ad...@darkreader.org.xpi -} - -package_thunderbird-dark-reader() { - cd darkreader-$pkgver/build/release - install -Dm644 darkreader-thunderbird.xpi \ - "$pkgdir"/usr/lib/thunderbird/extensions/ad...@darkreader.org.xpi -} - -# vim:set ts=2 sw=2 et: Copied: dark-reader/repos/community-any/PKGBUILD (from rev 1037951, dark-reader/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-11-07 00:10:10 UTC (rev 1037952) @@ -0,0 +1,52 @@ +# Maintainer: Daniel M. Capella <poly...@archlinux.org> +# Contributor: Cookie Engineer <cookiengin...@protonmail.ch> + +pkgname=('dark-reader' 'firefox-dark-reader' 'thunderbird-dark-reader') +pkgbase=dark-reader +pkgver=4.9.42 +pkgrel=1 +pkgdesc='Inverts brightness of web pages and aims to reduce eyestrain while browsing the web' +arch=('any') +url=https://darkreader.org/ +license=('MIT') +makedepends=('npm' 'strip-nondeterminism') +source=("https://github.com/darkreader/darkreader/archive/v$pkgver/darkreader-$pkgver.tar.gz") +b2sums=('2987b3e7ebd4e0a69244e1652f63ea09ad4ebea4c152841bdb2efdd069563ebdd31a04b0dd6f1fd230512d6c44a2b149164c97c09feab1f80264ac5221fbf110') + +prepare() { + cd darkreader-$pkgver + npm ci +} + +build() { + cd darkreader-$pkgver + npm run build + strip-nondeterminism -t zip build/release/*.xpi +} + +check() { + cd darkreader-$pkgver + npm test +} + +package_dark-reader() { + pkgdesc+=' (unpacked webextension)' + cd darkreader-$pkgver/build/release/chrome + install -d "$pkgdir"/usr/lib/$pkgbase + cp -r -- * "$pkgdir"/usr/lib/$pkgbase +} + +package_firefox-dark-reader() { + groups=('firefox-addons') + cd darkreader-$pkgver/build/release + install -Dm644 darkreader-firefox.xpi \ + "$pkgdir"/usr/lib/firefox/browser/extensions/ad...@darkreader.org.xpi +} + +package_thunderbird-dark-reader() { + cd darkreader-$pkgver/build/release + install -Dm644 darkreader-thunderbird.xpi \ + "$pkgdir"/usr/lib/thunderbird/extensions/ad...@darkreader.org.xpi +} + +# vim:set ts=2 sw=2 et: