/ graphite-grub-theme / PKGBUILD
PKGBUILD
1 # Maintainer: Dominik Nakamura <dnaka91@gmail.com> 2 # https://github.com/dnaka91/pkgbuilds 3 4 pkgbase=graphite-grub-theme 5 _pkgbase=Graphite-gtk-theme 6 pkgname=('graphite-grub-theme-default-1080p' 7 'graphite-grub-theme-default-2k' 8 'graphite-grub-theme-default-4k' 9 'graphite-grub-theme-nord-1080p' 10 'graphite-grub-theme-nord-2k' 11 'graphite-grub-theme-nord-4k') 12 pkgver=2025.07.06 13 _pkgver="${pkgver//./-}" 14 pkgrel=1 15 pkgdesc="Graphite grub theme" 16 arch=('any') 17 url="https://github.com/vinceliuice/Graphite-gtk-theme" 18 license=('GPL-3.0-or-later') 19 depends=('grub') 20 makedepends=() 21 source=("$pkgbase-$pkgver.tar.gz::$url/archive/$_pkgver.tar.gz") 22 b2sums=('3e655b89219eb1bcc96e4e611a8480af7a6b87d3dd35f5071c793a8f86309ef19b34dd30af0ec8a1485f5708f1f0f854a871a1f80414f4850b1bae6cef3649f7') 23 24 _package() { 25 cd "$srcdir/$_pkgbase-$_pkgver" 26 install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/"$_pkgname" 27 28 cd other/grub2 29 _name="graphite-$_theme-$_resolution" 30 _colorscheme='' 31 if [[ "$_theme" != "default" ]]; then 32 _colorscheme="-$_theme" 33 fi 34 35 install -dm 755 "$pkgdir"/usr/share/grub/themes/"$_name" 36 install -Dm 644 common/* -t "$pkgdir"/usr/share/grub/themes/"$_name" 37 install -Dm 644 config/theme-"$_resolution".txt "$pkgdir"/usr/share/grub/themes/"$_name"/theme.txt 38 install -Dm 644 backgrounds/"$_resolution"/"wave-dark$_colorscheme.png" "$pkgdir"/usr/share/grub/themes/"$_name"/background.png 39 install -Dm 644 assets/"logos$_colorscheme"/"$_resolution"/*.png -t "$pkgdir"/usr/share/grub/themes/"$_name"/icons 40 install -Dm 644 assets/"assets$_colorscheme"/"$_resolution"/*.png -t "$pkgdir"/usr/share/grub/themes/"$_name" 41 } 42 43 main() { 44 for _pkgname in "${pkgname[@]}"; do 45 eval "package_$_pkgname() { 46 provides=("$_pkgname") 47 _pkgname="$_pkgname" 48 _theme="$(echo $_pkgname | sed 's/graphite-grub-theme-//' | awk -F '-' '{print $1}')" 49 _resolution="$(echo $_pkgname | sed 's/graphite-grub-theme-//' | awk -F '-' '{print $2}')" 50 _package 51 }" 52 done 53 } 54 55 main