summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 644a202375c7b3cbec5d8a70ecb17a259e1d7897 (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
53
54
55
56
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Tuhana GAYRETLÄ° <tuhana at cok dot gay>
# shellcheck disable=SC2034,SC2148,SC2164,SC2154,SC2128

pkgname=(
  catppuccin-frappe-grub-theme-git
  catppuccin-latte-grub-theme-git
  catppuccin-macchiato-grub-theme-git
  catppuccin-mocha-grub-theme-git)
pkgbase=catppuccin-grub-theme-git
_pkg="${pkgbase%-git}"
pkgver=r25.4f6ac65
pkgrel=2
pkgdesc='Soothing pastel theme for GRUB2'
arch=('any')
url='https://github.com/catppuccin/grub'
license=('MIT')
makedepends=('git')
source=("$_pkg::git+$url")
sha256sums=('SKIP')

_package() {
	cd "$_pkg/src"
	find "$1" \
		-type f \
		-exec install -Dm644 '{}' "$pkgdir/usr/share/grub/themes/{}" \;
	install -Dm644 ../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}

package_catppuccin-frappe-grub-theme-git() {
	pkgdesc+=' -- Frappe colorscheme'
	install=$pkgname.install

	_package catppuccin-frappe-grub-theme
}

package_catppuccin-latte-grub-theme-git() {
	pkgdesc+=' -- Latte colorscheme'
	install=$pkgname.install

	_package catppuccin-latte-grub-theme
}

package_catppuccin-macchiato-grub-theme-git() {
	pkgdesc+=' -- Macchiato colorscheme'
	install=$pkgname.install

	_package catppuccin-macchiato-grub-theme
}

package_catppuccin-mocha-grub-theme-git() {
	pkgdesc+=' -- Mocha colorscheme'
	install=$pkgname.install

	_package catppuccin-mocha-grub-theme
}