blob: c5db7239369c7ab43215fb0e62a28ca6a3d893ba (
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
|
# Maintainer: Tony Lambiris <tony@criticalstack.com>
pkgname=nordic-theme-git
_pkgname=Nordic
pkgver=10.5f31988
pkgrel=1
pkgdesc="Dark Gtk3.20+ theme created using the awesome Nord color pallete."
arch=("any")
url="https://github.com/EliverLara/${_pkgname}"
license=('GPL')
optdepends=('ttf-roboto: primary font face defined'
'ttf-ubuntu-font-family: secondary font face defined'
'cantarell-fonts: tertiary font face defined')
source=("${_pkgname}::git+https://github.com/EliverLara/${_pkgname}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
msg2 "To customize the font size for gnome-shell, build this pacakge"
msg2 "with the variable DEFAULT_FONT_SIZE set to the desired pt size"
msg2 ""
msg2 "Continuing build in 5 seconds..."; sleep 5
msg2 "Setting gnome-shell font size to ${DEFAULT_FONT_SIZE}pt"
export DEFAULT_FONT_SIZE="${DEFAULT_FONT_SIZE:-10}"
sed -i -re "s/font-size: 10pt/font-size: ${DEFAULT_FONT_SIZE:-10}pt/" \
"${srcdir}/${_pkgname}/gnome-shell/gnome-shell.css"
msg2 "Rendering assets, please wait"
cd src
while read $line; do echo -n "."; done < \
<(./render-gtk3-assets.py; ./render-gtk3-assets-hidpi.py); echo
msg2 "Done!"
}
package() {
cd "${srcdir}/${_pkgname}"
mkdir -p "${pkgdir}/usr/share/themes/${_pkgname}"
cp -a "${srcdir}/${_pkgname}/"* "${pkgdir}/usr/share/themes/${_pkgname}/"
}
|