blob: fdeb59522ef0dfa4208f1bed873c356ce1947325 (
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
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: Diego Principe <cdprincipe@at@gmail@dot@com>
pkgname=thunderbird-theme-adwaita
pkgver=31.0
pkgrel=1
pkgdesc="Adwaita theme for Thunderbird (Matches the default Gnome Shell theme)"
url="https://addons.mozilla.org/en-US/thunderbird/addon/adwaita-thunderbird"
arch=('any')
license=('MPL')
depends=("thunderbird")
makedepends=('unzip')
_git_commit="0284aedcc3c6ca908e1083647ab4589c2bbd84be"
source=("${pkgname}-${pkgver}.zip"::"https://github.com/gnome-integration-team/thunderbird-gnome/archive/${_git_commit}.zip")
sha256sums=('b0bf6b5ebb6942af16d09696684d95d924e69b0980b15ae4de76e54b8704cb01')
package() {
cd "${srcdir}/thunderbird-gnome-${_git_commit}/theme"
# Find extension UUID
_emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)
# Prepare destination folder
_dstdir="${pkgdir}/usr/lib/thunderbird/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
}
|