aboutsummaryrefslogtreecommitdiffstats
path: root/testing/materia-kde/APKBUILD
blob: 621f5ae101e5b7234cf7300213937c747e603957 (plain) (blame)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=materia-kde
pkgver=20201222
pkgrel=0
pkgdesc="Materia theme from GNOME for KDE Plasma 5"
options="!check" # It is a theme
url="https://github.com/PapirusDevelopmentTeam/materia-kde"
arch="noarch"
license="GPL-3.0-only"
subpackages="
	materia-kde-plasma:_plasma:noarch
	materia-dark-kde-plasma:_dark_plasma:noarch
	materia-light-kde-plasma:_light_plasma:noarch

	materia-kde-konsole:_konsole:noarch
	materia-dark-kde-konsole:_dark_konsole:noarch

	materia-dark-kde-yakuake:_dark_yakuake:noarch
	materia-light-kde-yakuake:_light_yakuake:noarch

	materia-kde-kvantum:_kvantum:noarch
	materia-dark-kde-kvantum:_dark_kvantum:noarch
	materia-dark-compact-kde-kvantum:_dark_compact_kvantum:noarch
	materia-light-kde-kvantum:_light_kvantum:noarch
	materia-light-compact-kde-kvantum:_light_compact_kvantum:noarch
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/PapirusDevelopmentTeam/materia-kde/archive/$pkgver/materia-kde-$pkgver.tar.gz"

package() {
	install -d "$pkgdir"/usr/share

	for dir in plasma aurorae color-schemes konsole yakuake Kvantum; do
		cp -r "$dir" "$pkgdir"/usr/share
	done
}

_plasma() {
	pkgdesc="Plasma assets for KDE version of Materia"
	install_if="materia plasma-desktop"

	amove usr/share/plasma/desktoptheme/Materia
	amove usr/share/plasma/desktoptheme/Materia-Color
	amove usr/share/plasma/look-and-feel

}

_dark_plasma() {
	pkgdesc="Plasma assets for dark KDE version of Materia"
	depends="materia-kde-plasma"
	install_if="materia-dark plasma-desktop"

	amove usr/share/aurorae/themes/Materia-Dark
	amove usr/share/color-schemes/MateriaDark.colors
}

_light_plasma() {
	pkgdesc="Plasma assets for light KDE version of Materia"
	depends="materia-kde-plasma"
	install_if="materia-light plasma-desktop"

	amove usr/share/aurorae/themes/Materia-Light
	amove usr/share/color-schemes/MateriaLight.colors
}

_konsole() {
	pkgdesc="Konsole assets for KDE version of Materia"
	install_if="materia konsole"

	amove usr/share/konsole/Materia.colorscheme
}

_dark_konsole() {
	pkgdesc="Konsole assets for dark KDE version of Materia"
	install_if="materia-dark konsole"

	amove usr/share/konsole/MateriaDark.colorscheme
}

_dark_yakuake() {
	pkgdesc="Yakuake assets for dark KDE version of Materia"
	install_if="materia-dark yakuake"

	amove usr/share/yakuake/skins/materia-dark
}

_light_yakuake() {
	pkgdesc="Yakuake assets for light KDE version of Materia"
	install_if="materia-light yakuake"

	amove usr/share/yakuake/skins/materia-light
}

_kvantum() {
	pkgdesc="Kvantum assets for KDE version of Materia"
	install_if="materia kvantum"

	amove usr/share/Kvantum/Materia
}

_dark_kvantum() {
	pkgdesc="Kvantum assets for dark KDE version of Materia"
	install_if="materia-dark kvantum"

	amove usr/share/Kvantum/MateriaDark
}

_dark_compact_kvantum() {
	pkgdesc="Kvantum assets for dark KDE version of Materia"
	depends="materia-dark-kde-kvantum"
	install_if="materia-dark-compact kvantum"

	mkdir -p "$subpkgdir"
}

_light_kvantum() {
	pkgdesc="Kvantum assets for light KDE version of Materia"
	install_if="materia-light kvantum"

	amove usr/share/Kvantum/MateriaLight
}

_light_compact_kvantum() {
	pkgdesc="Kvantum assets for light KDE version of Materia"
	depends="materia-light-kde-kvantum"
	install_if="materia-light-compact kvantum"

	mkdir -p "$subpkgdir"
}

sha512sums="eb1e643a8904f76e8350d67b9721a25851133f0f47bd2e95f406e131b2bbe78441f4acea939e5170e213308296c7d5f1fc2d52208cb6b3de131d5c1b29a74326  materia-kde-20201222.tar.gz"