summaryrefslogtreecommitdiff
path: root/libre/icecat-theme-adwaita
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-07-01 12:41:04 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-07-01 12:41:04 -0300
commitf57afa6711693a7f1757f1de73d7114610ae485e (patch)
tree1702e0327ebc5a37e7f464b8e6717b5cad7e9634 /libre/icecat-theme-adwaita
parente1ca40b3c48d38722b6c0a05418e9a953fd98988 (diff)
downloadabslibre-f57afa6711693a7f1757f1de73d7114610ae485e.tar.gz
abslibre-f57afa6711693a7f1757f1de73d7114610ae485e.tar.bz2
abslibre-f57afa6711693a7f1757f1de73d7114610ae485e.zip
icecat-theme-adwaita: add new package to [libre]
Diffstat (limited to 'libre/icecat-theme-adwaita')
-rw-r--r--libre/icecat-theme-adwaita/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/libre/icecat-theme-adwaita/PKGBUILD b/libre/icecat-theme-adwaita/PKGBUILD
new file mode 100644
index 000000000..c8b749cc4
--- /dev/null
+++ b/libre/icecat-theme-adwaita/PKGBUILD
@@ -0,0 +1,41 @@
+# 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>
+# Contributor: André Silva <emulatorman@parabola.nu>
+
+pkgname=icecat-theme-adwaita
+pkgver=38.1
+pkgrel=1
+pkgdesc="Adwaita theme for IceCat (Matches the default Gnome Shell theme)"
+url="https://addons.mozilla.org/en-US/firefox/addon/adwaita/"
+arch=('any')
+license=('MPL')
+depends=("icecat")
+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}"
+ # Fix for wrong version number
+ # https://github.com/gnome-integration-team/firefox-gnome/issues/337
+ cd "${pkgname}-${pkgver}"
+ sed -i "s_\(<em:version>\)35.1\(</em:version>\)_\1${pkgver}\2_" "install.rdf"
+}
+
+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/icecat/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
+}
+