diff options
author | Tony Lambiris | 2018-11-27 03:31:20 -0500 |
---|---|---|
committer | Tony Lambiris | 2018-11-27 03:31:20 -0500 |
commit | 8dc0c28c1e81b2c750a6d0935ce692284aadfb1b (patch) | |
tree | 6cb787dd6906f00a0c5bc778e2ce27c05512526e /PKGBUILD | |
download | aur-8dc0c28c1e81b2c750a6d0935ce692284aadfb1b.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c5db7239369c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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}/" +} |