summaryrefslogtreecommitdiff
path: root/libre/iceweasel-theme-adwaita/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-06-21 02:09:31 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-06-21 02:09:31 -0500
commit5ff7f0289797314ed53dcf23d099b0eb29209fe4 (patch)
tree7feeb2cf74fb0e7e745f2ce2323ae6505e81b08f /libre/iceweasel-theme-adwaita/PKGBUILD
parent9451a114694c43f7c9258fd75d1a54eb8ae745d7 (diff)
downloadabslibre-5ff7f0289797314ed53dcf23d099b0eb29209fe4.tar.gz
abslibre-5ff7f0289797314ed53dcf23d099b0eb29209fe4.tar.bz2
abslibre-5ff7f0289797314ed53dcf23d099b0eb29209fe4.zip
iceweasel-theme-adwaita: add new package to [libre]
Diffstat (limited to 'libre/iceweasel-theme-adwaita/PKGBUILD')
-rw-r--r--libre/iceweasel-theme-adwaita/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/libre/iceweasel-theme-adwaita/PKGBUILD b/libre/iceweasel-theme-adwaita/PKGBUILD
new file mode 100644
index 000000000..d472d8ed3
--- /dev/null
+++ b/libre/iceweasel-theme-adwaita/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id$
+# 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>
+# Contributor: Daniel Milewski <niitotantei@riseup.net>
+
+pkgname=iceweasel-theme-adwaita
+pkgver=38.1
+pkgrel=1.parabola1
+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')
+source=("gnome-firefox-theme-${pkgver}.xpi"::"https://github.com/gnome-integration-team/firefox-gnome/releases/download/${pkgver}/gnome-firefox-theme.xpi")
+sha256sums=('af050237a8cddee0f9123f81a9df58b0b97e94f84059cc67225183cb3243a70e')
+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>\(.*\)<\/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
+}
+