[arch-commits] Commit in (4 files)

Fabio Castelli muflone at archlinux.org
Sat Mar 21 19:47:08 UTC 2015


    Date: Saturday, March 21, 2015 @ 20:47:08
  Author: muflone
Revision: 129718

new package firefox-theme-adwaita

Added:
  firefox-theme-adwaita/
  firefox-theme-adwaita/repos/
  firefox-theme-adwaita/trunk/
  firefox-theme-adwaita/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Added: firefox-theme-adwaita/trunk/PKGBUILD
===================================================================
--- firefox-theme-adwaita/trunk/PKGBUILD	                        (rev 0)
+++ firefox-theme-adwaita/trunk/PKGBUILD	2015-03-21 19:47:08 UTC (rev 129718)
@@ -0,0 +1,35 @@
+# $Id:
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Diego Principe <cdprincipe at at@gmail at dot@com>
+
+pkgname=firefox-theme-adwaita
+pkgver=35.1
+pkgrel=1
+pkgdesc="Adwaita theme for Firefox (Matches the default Gnome Shell theme)"
+url="https://addons.mozilla.org/en-US/firefox/addon/adwaita/"
+arch=('any')
+license=('MPL')
+depends=("firefox")
+makedepends=('unzip')
+source=("https://github.com/gnome-integration-team/firefox-gnome/releases/download/${pkgver}/gnome-firefox-theme.xpi")
+sha256sums=('aaa13577b1c4f3038f719f32780a4e4e1e5ef509e7b85336172788994da81594')
+noextract=("gnome-firefox-theme.xpi")
+
+prepare() {
+  unzip -qo "gnome-firefox-theme.xpi" -d "${pkgname}-${pkgver}"
+}
+
+package() {
+  cd "${srcdir}/${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/firefox/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
+}
+


Property changes on: firefox-theme-adwaita/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list