blob: fb7c6cc95bf1794402ad80699ed789d837a6afc2 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Tony Lambiris <tony@libpcap.net>
pkgname=macterial-theme-git
_pkgname=macterial
pkgver=2.3.1.r15.g95c184c
pkgrel=1
pkgdesc="A mac inspired Gtk+ theme based on Material design"
arch=("any")
url="https://github.com/mythio/${_pkgname}"
license=('GPL')
makedepends=('git')
source=("${_pkgname}::git+https://github.com/mythio/${_pkgname}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
build() {
cd "${srcdir}/${_pkgname}"
export THEME_FONT_FACE="${THEME_FONT_FACE:-Sans-Serif}"
export THEME_FONT_SIZE="${THEME_FONT_SIZE:-9}"
msg2 "To customize the font and size for gnome-shell, build this package"
msg2 "with the variables below set to the desired font family and size"
msg2 "- THEME_FONT_FACE (default font family is Sans-Serif)"
msg2 "- THEME_FONT_SIZE (default font point size is 9)"
msg2 ""
msg2 "Continuing build in 5 seconds..."; sleep 5
msg2 "Setting gnome-shell font face to ${THEME_FONT_FACE}"
msg2 "Setting gnome-shell font size to ${THEME_FONT_SIZE}"
if [ "${THEME_FONT_FACE}" != "Sans-Serif" ]; then
sed -i -re "s/font-family: (.*);/font-family: ${THEME_FONT_FACE}, \1;/" \
"${srcdir}/${_pkgname}/gnome-shell/gnome-shell.css"
fi
if [ "${THEME_FONT_SIZE}" != "9" ]; then
sed -i -re "s/font-size: (.*);/font-size: ${THEME_FONT_SIZE}pt;/" \
"${srcdir}/${_pkgname}/gnome-shell/gnome-shell.css"
fi
}
package() {
cd "${srcdir}/${_pkgname}"
mkdir -p "${pkgdir}/usr/share/themes/${_pkgname}"
cp -a "${srcdir}/${_pkgname}/"* "${pkgdir}/usr/share/themes/${_pkgname}/"
}
|