[arch-commits] Commit in firefox-dark-reader/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at archlinux.org
Fri Nov 27 06:07:24 UTC 2020
Date: Friday, November 27, 2020 @ 06:07:24
Author: polyzen
Revision: 763973
archrelease: copy trunk to community-any
Added:
firefox-dark-reader/repos/community-any/PKGBUILD
(from rev 763972, firefox-dark-reader/trunk/PKGBUILD)
Deleted:
firefox-dark-reader/repos/community-any/PKGBUILD
----------+
PKGBUILD | 50 +++++++++++++++++++++++++++-----------------------
1 file changed, 27 insertions(+), 23 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-27 06:07:03 UTC (rev 763972)
+++ PKGBUILD 2020-11-27 06:07:24 UTC (rev 763973)
@@ -1,23 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Cookie Engineer <cookiengineer at protonmail.ch>
-
-pkgname=firefox-dark-reader
-pkgver=4.9.24
-pkgrel=1
-pkgdesc='Inverts brightness of web pages and aims to reduce eyestrain while browsing the web'
-url=https://darkreader.org/
-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')
-
-package() {
- install -Dm644 "${source##*/}" "$pkgdir"/usr/lib/firefox/browser/extensions/addon at darkreader.org.xpi
-}
-
-# vim:set ts=2 sw=2 et:
Copied: firefox-dark-reader/repos/community-any/PKGBUILD (from rev 763972, firefox-dark-reader/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-27 06:07:24 UTC (rev 763973)
@@ -0,0 +1,27 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Cookie Engineer <cookiengineer at protonmail.ch>
+
+pkgname=firefox-dark-reader
+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/
+arch=('any')
+license=('MIT')
+groups=('firefox-addons')
+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() {
+ 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