summaryrefslogtreecommitdiff
path: root/libre/iceweasel-theme-gnome-tweak/PKGBUILD
blob: bc357fa1dd8dc6524f51a6a036c3051d6ee03f2e (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
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 167666 2016-03-20 02:09:47Z muflone $
# Maintainer (Arch): Muflone http://www.muflone.com/contacts/english/
# Contributor (Arch): Diego Principe <cdprincipe@at@gmail@dot@com>
# 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=45.1
pkgrel=2
pkgdesc='Iceweasel extension for customizing the GNOME 3 theme, built from sources'
url="https://addons.mozilla.org/en-us/firefox/addon/gnome-theme-tweak/"
arch=('any')
license=('MPL')
depends=("iceweasel-theme-gnome")
makedepends=('python2')
replaces=('firefox-theme-adwaita' 'iceweasel-theme-adwaita' 'firefox-theme-gnome-tweak')
conflicts=('firefox-theme-adwaita' 'iceweasel-theme-adwaita' 'firefox-theme-gnome-tweak')
source=("${_pkgname}-${pkgver}.tar.gz"::"https://github.com/gnome-integration-team/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('aa7f13d6d00e3801360b646ac4f704b96601f14741ec9a3765a89b6d41e3c1f3')

build() {
  cd "${_pkgname}-${pkgver}"
  python2 make-xpi.py --force-rebuild extension
}

package() {
  cd "${_pkgname}-${pkgver}"
  # Prepare destination folder
  install -m 755 -d "${pkgdir}/usr/lib/iceweasel/browser/extensions"
  # Install extension
  _emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' extension/install.rdf.in)
  install -m 644 "gnome-firefox-extension.xpi" "${pkgdir}/usr/lib/iceweasel/browser/extensions/${_emid}.xpi"
}