summaryrefslogtreecommitdiff
path: root/unmaintained/iceweasel-theme-gnome-tweak/PKGBUILD
blob: ba96681afe96f52fe99e8c4a6c415e635407a873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 171820 2016-04-25 17:37:34Z muflone $
# Maintainer (Arch): Muflone http://www.muflone.com/contacts/english/
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Daniel Milewski <niitotantei@riseup.net>
# Contributor: Isaac David <isacdaavid () isacdaavid!info>

pkgname=iceweasel-theme-gnome-tweak
_pkgname=firefox-gnome
pkgver=42.1
pkgrel=1
pkgdesc="Iceweasel extension for customizing the GNOME 3 theme"
url="https://addons.mozilla.org/en-us/firefox/addon/gnome-theme-tweak/"
arch=('any')
license=('MPL')
depends=("iceweasel-theme-gnome")
replaces=('firefox-theme-adwaita' 'iceweasel-theme-adwaita' 'firefox-theme-gnome-tweak')
conflicts=('firefox-theme-adwaita' 'iceweasel-theme-adwaita' 'firefox-theme-gnome-tweak')
source=("https://addons.cdn.mozilla.net/user-media/addons/458932/gnome_theme_tweak-${pkgver}-fx-linux.xpi")
sha256sums=('a03eac2f4eb5796a9a4e6da07592db08d8a97f4ad09e6769015b6aef6f2ef235')

package() {
  install -m 755 -d "${pkgdir}/usr/lib/iceweasel/browser/extensions"
  _emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)
  install -m 644 "gnome_theme_tweak-${pkgver}-fx-linux.xpi" "${pkgdir}/usr/lib/iceweasel/browser/extensions/${_emid}.xpi"
}