summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lambiris2018-12-04 02:00:21 -0500
committerTony Lambiris2018-12-04 02:00:21 -0500
commit658529ab6deeba5b5562ef3d519a5c2bcd21a3fe (patch)
tree4218dabaac8a11547f4d31df088e8e7a6067f0ec
parent26ac0b0dbea558253dadf4a81fe81af5a59ddcb6 (diff)
downloadaur-658529ab6deeba5b5562ef3d519a5c2bcd21a3fe.tar.gz
Version bump
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD32
2 files changed, 26 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b7d05c165c0..d4c76b1f711 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nordic-polar-theme-git
pkgdesc = A Gtk3.20+ theme created using the awesome Nord color palette.
pkgver = 9.fa226da
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/EliverLara/Nordic-Polar
arch = any
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index dd77211c18f..761a3e37151 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=nordic-polar-theme-git
_pkgname=Nordic-Polar
pkgver=9.fa226da
-pkgrel=1
+pkgrel=2
pkgdesc="A Gtk3.20+ theme created using the awesome Nord color palette."
arch=("any")
url="https://github.com/EliverLara/${_pkgname}"
@@ -23,20 +23,38 @@ pkgver() {
build() {
cd "${srcdir}/${_pkgname}"
+ export THEME_FONT_FACE="${THEME_FONT_FACE:-Roboto}"
+ export THEME_FONT_SIZE="${THEME_FONT_SIZE:-10}"
+
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 "with the variables below set to the desired font family and size"
+ msg2 "- THEME_FONT_FACE (default font family is Roboto)"
+ msg2 "- THEME_FONT_SIZE (default font point size is 10)"
msg2 ""
msg2 "Continuing build in 5 seconds..."; sleep 5
- msg2 "Setting gnome-shell font size to ${DEFAULT_FONT_SIZE}pt"
+ msg2 "Setting gnome-shell font face to ${THEME_FONT_FACE}"
+ msg2 "Setting gnome-shell font size to ${THEME_FONT_SIZE}"
+
+ if [ "${THEME_FONT_FACE}" != "Roboto" ]; then
+ sed -i -re "s/font-family: (.*);/font-family: ${THEME_FONT_FACE}, \1;/" \
+ "${srcdir}/${_pkgname}/gnome-shell/gnome-shell.css"
+ fi
- 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"
+ if [ "${THEME_FONT_SIZE}" != "10" ]; then
+ sed -i -re "s/font-size: (.*);/font-size: ${THEME_FONT_SIZE}pt;/" \
+ "${srcdir}/${_pkgname}/gnome-shell/gnome-shell.css"
+ fi
msg2 "Rendering assets, please wait"
- cd src
+ pushd gtk-2.0
+ while read $line; do echo -n "."; done < \
+ <(./render-assets.sh; ); echo
+ popd
+
+ pushd src
while read $line; do echo -n "."; done < \
<(./render-gtk3-assets.py; ./render-gtk3-assets-hidpi.py); echo
+ popd
msg2 "Done!"
}