[arch-commits] Commit in firefox-dark-reader/trunk (PKGBUILD)
Daniel M. Capella
polyzen at archlinux.org
Sat Jan 23 09:25:16 UTC 2021
Date: Saturday, January 23, 2021 @ 09:25:16
Author: polyzen
Revision: 825932
upgpkg: dark-reader 4.9.28, splitpkg, use lockfile
Modified:
firefox-dark-reader/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++++++++++++++++++---------
1 file changed, 21 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-23 09:22:34 UTC (rev 825931)
+++ PKGBUILD 2021-01-23 09:25:16 UTC (rev 825932)
@@ -1,21 +1,21 @@
# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
# Contributor: Cookie Engineer <cookiengineer at protonmail.ch>
-pkgname=firefox-dark-reader
-pkgver=4.9.27
+pkgname=('dark-reader' 'firefox-dark-reader' 'thunderbird-dark-reader')
+pkgbase=dark-reader
+pkgver=4.9.28
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=('npm')
source=("https://github.com/darkreader/darkreader/archive/v$pkgver/darkreader-v$pkgver.tar.gz")
-b2sums=('2e5e886eb02ec1dccdd6036dcc0d82b0fb777043d516809667658f392b6ec41326ca9dd167fa685a1d114f053cb8ecc256437ebf740b13d0de10c71b64990f70')
+b2sums=('d0b9e7d916dc3b81a6b37bbe43fa4ee5b3c810ccc927226f8a7535ded142d696bec7eba2585a98e94af2aefde05a9af3b9dca11fdb169836f1e26b08a25f83a2')
build() {
cd darkreader-$pkgver
- npm install
+ npm install --frozen-lockfile
npm run build
}
@@ -24,11 +24,23 @@
npm test
}
-package() {
+package_dark-reader() {
+ pkgdesc+=' (unpacked webextension)'
cd darkreader-$pkgver
- install -Dm644 build-firefox.xpi "$pkgdir"/usr/lib/firefox/browser/extensions/addon at darkreader.org.xpi
- install -d "$pkgdir"/usr/lib/thunderbird/extensions
- ln -s /usr/lib/firefox/browser/extensions/addon at darkreader.org.xpi \
+ install -d "$pkgdir"/usr/lib/$pkgbase
+ cp -r build/* "$pkgdir"/usr/lib/$pkgbase
+}
+
+package_firefox-dark-reader() {
+ groups=('firefox-addons')
+ cd darkreader-$pkgver
+ install -Dm644 build-firefox.xpi \
+ "$pkgdir"/usr/lib/firefox/browser/extensions/addon at darkreader.org.xpi
+}
+
+package_thunderbird-dark-reader() {
+ cd darkreader-$pkgver
+ install -Dm644 build-thunderbird.xpi \
"$pkgdir"/usr/lib/thunderbird/extensions/addon at darkreader.org.xpi
}
More information about the arch-commits
mailing list