summaryrefslogtreecommitdiff
path: root/libre/iceweasel-theme-gnome/PKGBUILD
blob: 2c013b2ff8cce00d0f56efbc2b37b4900a4e44b1 (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
37
# $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
_pkgname=firefox-gnome
pkgver=45.1
pkgrel=2
pkgdesc='GNOME 3 theme for Iceweasel (Previously known as "Adwaita"), without nonfree firefox dependency'
url="https://addons.mozilla.org/en-US/firefox/addon/adwaita/"
arch=('any')
license=('MPL')
depends=("iceweasel")
makedepends=('python2')
replaces=('firefox-theme-gnome')
conflicts=('firefox-theme-gnome' 'iceweasel-theme-adwaita')
optdepends=('iceweasel-theme-gnome-tweak: GNOME theme customization')
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 theme
}

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