summaryrefslogtreecommitdiff
path: root/testing/materia-gtk-theme/APKBUILD
blob: f6e39890ade9231049da1be07c0030b759a51df0 (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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=materia-gtk-theme
pkgver=20210322
pkgrel=1
pkgdesc="Material Design theme for GNOME/GTK desktops"
options="!check" # It is a theme
url="https://github.com/nana-4/materia-theme"
arch="noarch !s390x"
license="GPL-2.0-only"
makedepends="meson sassc"
subpackages="
	materia:_materia:noarch
	materia-gtk3:_gtk3:noarch
	materia-gtk2:_gtk2:noarch
	materia-gnome-shell:_gnome_shell:noarch
	materia-chromium:_chromium:noarch

	materia-compact:_materia_compact:noarch
	materia-compact-gtk3:_gtk3_compact:noarch
	materia-compact-gtk2:_gtk2_compact:noarch
	materia-compact-gnome-shell:_gnome_shell_compact:noarch
	materia-compact-chromium:_chromium_compact:noarch

	materia-dark:_dark:noarch
	materia-dark-gtk3:_dark_gtk3:noarch
	materia-dark-gtk2:_dark_gtk2:noarch
	materia-dark-gnome-shell:_dark_gnome_shell:noarch
	materia-dark-chromium:_dark_chromium:noarch

	materia-dark-compact:_dark_compact:noarch
	materia-dark-compact-gtk3:_dark_compact_gtk3:noarch
	materia-dark-compact-gtk2:_dark_compact_gtk2:noarch
	materia-dark-compact-gnome-shell:_dark_compact_gnome_shell:noarch
	materia-dark-compact-chromium:_dark_compact_chromium:noarch
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/nana-4/materia-theme/archive/v$pkgver.tar.gz
	"
builddir="$srcdir/materia-theme-$pkgver"

build() {
	abuild-meson \
		-Dgnome_shell_version=3.38 \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	rm -rf "$pkgdir"/usr/share/themes/*/xfwm4
	rm -rf "$pkgdir"/usr/share/themes/*/cinnamon
	rm -rf "$pkgdir"/usr/share/themes/*/plank
	rm -rf "$pkgdir"/usr/share/themes/*/unity
	rm -rf "$pkgdir"/usr/share/themes/*/metacity-1
	rm -rf "$pkgdir"/usr/share/themes/*/COPYING

	# Remove those and make a package for them if you want
	# and make a merge request in the Alpine Linux gitlab
	rm -rf "$pkgdir"/usr/share/themes/Materia-light-compact
	rm -rf "$pkgdir"/usr/share/themes/Materia-light
}

_dark_compact() {
	pkgdesc="Dark compact version of Materia"
	depends="gtk-murrine-engine"
	amove usr/share/themes/Materia-dark-compact/index.theme
}

_dark_compact_gtk3() {
	pkgdesc="GTK+3.0 assets for dark compact version of Materia"
	depends=""
	install_if="materia-dark-compact=$pkgver-r$pkgrel gtk+3.0"

	amove usr/share/themes/Materia-dark-compact/gtk-3.0
}

_dark_compact_gtk2() {
	pkgdesc="GTK+2.0 assets for dark compact version of Materia"
	depends=""
	install_if="materia-dark-compact=$pkgver-r$pkgrel gtk+2.0"

	amove usr/share/themes/Materia-dark-compact/gtk-2.0
}

_dark_compact_gnome_shell() {
	pkgdesc="GNOME Shell assets for dark compact version of Materia"
	depends=""
	install_if="materia-dark-compact=$pkgver-r$pkgrel gnome-shell"

	amove usr/share/themes/Materia-dark-compact/gnome-shell
}

_dark_compact_chromium() {
	pkgdesc="Chromium theme based on dark compact version of Materia"
	depends=""
	install_if="materia-dark-compact=$pkgver-r$pkgrel chromium"

	amove usr/share/themes/Materia-dark-compact/chrome
}

_dark() {
	pkgdesc="Dark version of Materia"
	depends="gtk-murrine-engine"
	amove usr/share/themes/Materia-dark/index.theme
}

_dark_gtk3() {
	pkgdesc="GTK+3.0 assets for dark version of Materia"
	depends=""
	install_if="materia-dark=$pkgver-r$pkgrel gtk+3.0"

	amove usr/share/themes/Materia-dark/gtk-3.0
}

_dark_gtk2() {
	pkgdesc="GTK+2.0 assets for dark version of Materia"
	depends=""
	install_if="materia-dark=$pkgver-r$pkgrel gtk+2.0"

	amove usr/share/themes/Materia-dark/gtk-2.0
}

_dark_gnome_shell() {
	pkgdesc="GNOME Shell assets for dark version of Materia"
	depends=""
	install_if="materia-dark=$pkgver-r$pkgrel gnome-shell"

	amove usr/share/themes/Materia-dark/gnome-shell
}

_dark_chromium() {
	pkgdesc="Chromium theme based on dark version of Materia"
	depends=""
	install_if="materia-dark=$pkgver-r$pkgrel chromium"

	amove usr/share/themes/Materia-dark/chrome
}

_materia() {
	pkgdesc="Materia theme"
	depends="gtk-murrine-engine"
	amove usr/share/themes/Materia/index.theme
}

_gtk3() {
	pkgdesc="GTK+3.0 assets for Materia"
	depends=""
	install_if="materia=$pkgver-r$pkgrel gtk+3.0"

	amove usr/share/themes/Materia/gtk-3.0
}

_gtk2() {
	pkgdesc="GTK+2.0 assets for Materia"
	depends=""
	install_if="materia=$pkgver-r$pkgrel gtk+2.0"

	amove usr/share/themes/Materia/gtk-2.0
}

_gnome_shell() {
	pkgdesc="GNOME Shell assets for Materia"
	depends=""
	install_if="materia=$pkgver-r$pkgrel gnome-shell"

	amove usr/share/themes/Materia/gnome-shell
}

_chromium() {
	pkgdesc="Chromium theme based on Materia"
	depends=""
	install_if="materia=$pkgver-r$pkgrel chromium"

	amove usr/share/themes/Materia/chrome
}

_materia_compact() {
	pkgdesc="Compact Materia theme"
	depends="gtk-murrine-engine"
	amove usr/share/themes/Materia-compact/index.theme
}

_gtk3_compact() {
	pkgdesc="GTK+3.0 assets for compact Materia"
	depends=""
	install_if="materia-compact=$pkgver-r$pkgrel gtk+3.0"

	amove usr/share/themes/Materia-compact/gtk-3.0
}

_gtk2_compact() {
	pkgdesc="GTK+2.0 assets for compact Materia"
	depends=""
	install_if="materia-compact=$pkgver-r$pkgrel gtk+2.0"

	amove usr/share/themes/Materia-compact/gtk-2.0
}

_gnome_shell_compact() {
	pkgdesc="GNOME Shell assets for compact Materia"
	depends=""
	install_if="materia-compact=$pkgver-r$pkgrel gnome-shell"

	amove usr/share/themes/Materia-compact/gnome-shell
}

_chromium_compact() {
	pkgdesc="Chromium theme based on compact Materia"
	depends=""
	install_if="materia-compact=$pkgver-r$pkgrel chromium"

	amove usr/share/themes/Materia-compact/chrome
}
sha512sums="c384a1afd5cf72f7ccfc0d1af8fd7efbe66027aa6e293899d57e46d8e572822ec6070785e957b07464cf0b3b73a302b9344920af361a9e8ab582565b7cedba71  materia-gtk-theme-20210322.tar.gz"