[arch-commits] Commit in firefox-dark-reader/trunk (PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Fri Nov 27 06:07:03 UTC 2020


    Date: Friday, November 27, 2020 @ 06:07:03
  Author: polyzen
Revision: 763972

upgpkg: firefox-dark-reader 4.9.26-1 and build from source

Modified:
  firefox-dark-reader/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-27 05:52:27 UTC (rev 763971)
+++ PKGBUILD	2020-11-27 06:07:03 UTC (rev 763972)
@@ -2,7 +2,7 @@
 # Contributor: Cookie Engineer <cookiengineer at protonmail.ch>
 
 pkgname=firefox-dark-reader
-pkgver=4.9.24
+pkgver=4.9.26
 pkgrel=1
 pkgdesc='Inverts brightness of web pages and aims to reduce eyestrain while browsing the web'
 url=https://darkreader.org/
@@ -9,15 +9,19 @@
 arch=('any')
 license=('MIT')
 groups=('firefox-addons')
-conflicts=('firefox-extension-dark-reader')
-replaces=('firefox-extension-dark-reader')
-source=("https://addons.cdn.mozilla.net/user-media/addons/855413/dark_reader-$pkgver-an+fx.xpi")
-noextract=("${source##*/}")
-sha256sums=('4d8c220167819e21347213635930c1b866dc73d8943cf1cef94d6aa2eaf0ddf1')
-b2sums=('fd6d2e1c8127a25c4b56cb6dde7384e25c14d180b8b56a9a00161dd776e3752cc477d718c67e16a1f760c759cc4a5e0e160494052a3fc41b0fe6db3aa31aafd2')
+makedepends=('nodejs' 'npm')
+source=("https://github.com/darkreader/darkreader/archive/v$pkgver/darkreader-v$pkgver.tar.gz")
+b2sums=('9ca8df8eb5f695ee8ee2d4694afa170ca206e5d4468370dc24b3704d6313e4f45939faff398f48df48125b6411b7f74e241d47680ea358dbf52f12e6ac8811d5')
 
+build() {
+  cd darkreader-$pkgver
+  npm install
+  npm run build
+}
+
 package() {
-  install -Dm644 "${source##*/}" "$pkgdir"/usr/lib/firefox/browser/extensions/addon at darkreader.org.xpi
+  cd darkreader-$pkgver
+  install -Dm644 build-firefox.xpi "$pkgdir"/usr/lib/firefox/browser/extensions/addon at darkreader.org.xpi
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list