blob: aafbd156023abe17342c76f9ef691b1808d38a35 (
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
|
# Maintainer: grimi <grimi at poczta dot fm>
pkgname=matcha-gtk-theme
pkgver=3.3
pkgrel=1
pkgdesc="A flat design theme for GNOME, MATE, Openbox, Unity, XFCE, Budgie"
arch=('any')
url='https://www.gnome-look.org/p/1187179'
license=('GPL3')
depends=('gtk-engine-murrine' 'gtk-engines' 'gtk3')
_hash_time=($(curl -s "$url"|grep -e "hash =" -e "timetamp ="|sed "s/.*= '\(.*\)';/\1/"))
source=("${pkgname}-${pkgver}.tar.xz::https://dl.opendesktop.org/api/files/downloadfile/id/1516445437/s/${_hash_time[0]}/t/${_hash_time[1]}/Matcha.tar.xz"
"${pkgname}-dark-${pkgver}.tar.xz::https://dl.opendesktop.org/api/files/downloadfile/id/1516445440/s/${_hash_time[0]}/t/${_hash_time[1]}/Matcha-dark.tar.xz")
sha256sums=('d206efd1f5a49cd00034af7f96fe7a9e55a309b93d618a81b6f87df28514dab5'
'be6a63526e9d687e4f5e1c4dd7c4c4c64c6c5cc6677dfe7405f4c7dff6a8283d')
prepare() {
sed -i 's/\(menu.border.width:\).*$/\1 1/' Matcha{,-dark}/openbox-3/themerc
sed -i 's/\(menu.items.text.color:\).*$/\1 #d3c2c5/; s/\(menu.items.bg.color:\).*$/\1 #1f2729/;
s/\(menu.border.color:\).*$/\1 #2d3036/; s/\(menu.seperator.color:\).*$/\1 #32353b/' \
Matcha-dark/openbox-3/themerc
}
package() {
find Matcha{,-dark}/ -type f ! -name thumbnail.png -exec install -Dm644 "{}" "${pkgdir}/usr/share/themes/{}" \;
find Matcha{,-dark}/ -type l -exec cp -d "{}" "${pkgdir}/usr/share/themes/{}" \;
}
|