diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-07 14:03:51 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-07 14:03:51 -0300 |
commit | 72099ec087eb138591ca9d4f7cc988bba1302d2b (patch) | |
tree | bfefb4a97d4f4ef7248431e4829836b837e1e9ba /libre | |
parent | 6b9802f1813dc56e362046d5b803f044ce1db9df (diff) |
iceweasel-theme-adwaita-45.1-1: updating version
Diffstat (limited to 'libre')
-rw-r--r-- | libre/iceweasel-theme-adwaita/PKGBUILD | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/libre/iceweasel-theme-adwaita/PKGBUILD b/libre/iceweasel-theme-adwaita/PKGBUILD index 7405ac62a..2e5e525b3 100644 --- a/libre/iceweasel-theme-adwaita/PKGBUILD +++ b/libre/iceweasel-theme-adwaita/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 148656 2015-12-05 18:35:31Z muflone $ +# $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> @@ -6,34 +6,33 @@ # Contributor: Daniel Milewski <niitotantei@riseup.net> pkgname=iceweasel-theme-adwaita -pkgver=42.1 +_pkgname=firefox-gnome +pkgver=45.1 pkgrel=1 -pkgdesc="Adwaita theme for Iceweasel (Matches the default Gnome Shell theme)" +pkgdesc="Adwaita theme for Iceweasel (Matches the default GNOME Shell theme)" url="https://addons.mozilla.org/en-US/firefox/addon/adwaita/" arch=('any') license=('MPL') depends=("iceweasel") -makedepends=('unzip') +makedepends=('python2') replaces=('firefox-theme-adwaita') -source=("gnome-firefox-theme-${pkgver}.xpi"::"https://github.com/gnome-integration-team/firefox-gnome/releases/download/${pkgver}/gnome-firefox-theme.xpi") -sha256sums=('5a1db079c6f0d7642ec5d3d6ade8daad9fef72cf39c9337aad6f3b35d661ca89') -noextract=("gnome-firefox-theme-${pkgver}.xpi") +source=("${_pkgname}-${pkgver}.tar.gz"::"https://github.com/gnome-integration-team/${_pkgname}/archive/${pkgver}.tar.gz") +sha256sums=('aa7f13d6d00e3801360b646ac4f704b96601f14741ec9a3765a89b6d41e3c1f3') -prepare() { - unzip -qo "gnome-firefox-theme-${pkgver}.xpi" -d "${pkgname}-${pkgver}" +build() { + cd "${_pkgname}-${pkgver}" + python2 make-xpi.py --force-rebuild all } package() { - cd "${pkgname}-${pkgver}" - # Find extension UUID - _emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf) + cd "${_pkgname}-${pkgver}" # Prepare destination folder - _dstdir="${pkgdir}/usr/lib/iceweasel/browser/extensions/${_emid}" - install -d "${_dstdir}" - # Copy files - cp -R * "${_dstdir}" - # Restore standard permissions - find "${pkgdir}" -type d -print0 | xargs --null chmod 0755 - find "${pkgdir}" -type f -print0 | xargs --null chmod 0644 + install -m 755 -d "${pkgdir}/usr/lib/firefox/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/firefox/browser/extensions/${_emid}.xpi" + # 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/firefox/browser/extensions/${_emid}.xpi" } |