blob: d349ac4d67b0c4a99d310e32c15fef56403396c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# 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=31.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-${pkgver}.xpi")
sha256sums=('6fb71b316db500574a837a511b05219273363c5b8ed05b20fc9e031eff3299db')
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/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
}
|