aboutsummaryrefslogtreecommitdiffstats
path: root/testing/materia-kde/APKBUILD
blob: ff351e1a2b311e192462d513f32bee0a1786850e (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=20210129
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="50e94aff338af6a892a109787a1f500703f12770a171ff9b119b4df6d4b69e02cc02da62aaa8574feaa054d02953251765e34f76261082b3a9edf9f286946e32  materia-kde-20210129.tar.gz"