[arch-commits] Commit in firefox-tree-style-tab/trunk (PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Mon Nov 30 08:02:27 UTC 2020


    Date: Monday, November 30, 2020 @ 08:02:27
  Author: polyzen
Revision: 766538

upgpkg: firefox-tree-style-tab 3.6.2-2: Build from source

Modified:
  firefox-tree-style-tab/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-30 06:24:41 UTC (rev 766537)
+++ PKGBUILD	2020-11-30 08:02:27 UTC (rev 766538)
@@ -1,21 +1,34 @@
 # Maintainer: Daniel M. Capella <polyzen at archlinux.org>
 # Contributor: Jérémie Detrey <Jeremie.Detrey at loria.fr>
 
+_name=treestyletab
 pkgname=firefox-tree-style-tab
 pkgver=3.6.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Firefox extension to show tabs like a tree'
 arch=('any')
+url=https://piro.sakura.ne.jp/xul/_treestyletab.html.en
 license=('MPL' 'MPL2')
 groups=('firefox-addons')
-url=https://piro.sakura.ne.jp/xul/_treestyletab.html.en
-source=("https://addons.cdn.mozilla.net/user-media/addons/5890/tree_style_tab_-$pkgver-fx.xpi")
-noextract=("${source##*/}")
-sha256sums=('1200e00dcc7a0a79c848ee667e364df5a6465302b2613f631886aec316deedcb')
-b2sums=('94b6be305de38271bc871e7ecd2a3a10b15ccc7c417e74b4860e7078ffbdc415865f8172ca1b79a70b436f496e493f4e53259ebb4fdf3372c7140d4abd76247b')
+makedepends=('git' 'zip')
+source=("git+https://github.com/piroor/treestyletab.git#tag=$pkgver")
+b2sums=('SKIP')
 
+prepare() {
+  cd $_name/webextensions
+  sed -i 's/^xpi:.*/xpi:/' Makefile
+  git submodule update --init
+}
+
+build() {
+  cd $_name/webextensions
+  make install_extlib
+  make xpi
+}
+
 package() {
-  install -Dm644 "${source##*/}" "$pkgdir"/usr/lib/firefox/browser/extensions/treestyletab at piro.sakura.ne.jp.xpi
+  cd $_name/webextensions
+  install -Dm644 $_name-we.xpi "$pkgdir"/usr/lib/firefox/browser/extensions/$_name at piro.sakura.ne.jp.xpi
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list