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

Daniel M. Capella polyzen at archlinux.org
Fri Nov 27 08:22:28 UTC 2020


    Date: Friday, November 27, 2020 @ 08:22:27
  Author: polyzen
Revision: 763988

upgpkg: firefox-stylus 1.5.14-1 and build from source

Modified:
  firefox-stylus/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-27 07:18:48 UTC (rev 763987)
+++ PKGBUILD	2020-11-27 08:22:27 UTC (rev 763988)
@@ -1,7 +1,7 @@
 # Maintainer: Daniel M. Capella <polyzen at archlinux.org>
 
 pkgname=firefox-stylus
-pkgver=1.5.13
+pkgver=1.5.14
 pkgrel=1
 pkgdesc='Easily install themes and skins for many popular sites'
 url=https://add0n.com/stylus.html
@@ -8,12 +8,20 @@
 arch=('any')
 license=('GPL3')
 groups=('firefox-addons')
-source=("https://addons.cdn.mozilla.net/user-media/addons/814814/stylus-$pkgver-fx.xpi")
-noextract=("${source##*/}")
-sha256sums=('2bb379e655144e030ec931bab3ca01f11ee8710b4ff788a19977ed94f778a159')
+makedepends=('git' 'nodejs' 'npm')
+source=("https://github.com/openstyles/stylus/archive/v$pkgver/stylus-v$pkgver.tar.gz")
+b2sums=('8e3591ccea567d4cdc74262b89ddedcfadac103f5b457edb4b0ddcbc8c5f602206732960194ed78aa5dc04157c8c285b2fd7a0969b2b53ae14ac65d09423a080')
 
+build() {
+  cd stylus-$pkgver
+  npm install
+  npm audit fix
+  npm run zip
+}
+
 package() {
-  install -Dm644 "${source##*/}" "$pkgdir"/usr/lib/firefox/browser/extensions/{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}.xpi
+  cd stylus-$pkgver
+  install -Dm644 stylus.zip "$pkgdir"/usr/lib/firefox/browser/extensions/{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}.xpi
 }
 
 # vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list