# $Id: PKGBUILD 148656 2015-12-05 18:35:31Z muflone $ # Maintainer (Arch): Muflone http://www.muflone.com/contacts/english/ # Contributor (Arch): Diego Principe # Maintainer: Omar Vega Ramos # Maintainer: André Silva # Contributor: Daniel Milewski pkgname=iceweasel-theme-adwaita pkgver=42.1 pkgrel=1 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') 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") prepare() { unzip -qo "gnome-firefox-theme-${pkgver}.xpi" -d "${pkgname}-${pkgver}" } package() { cd "${pkgname}-${pkgver}" # Find extension UUID _emid=$(sed -n '/.*\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf) # 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 }