aboutsummaryrefslogtreecommitdiffstats
path: root/testing/materia-gtk-theme/APKBUILD
blob: f9c853d5ab4fe47ff267b84e9357e0eb7ba7e772 (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
216
217
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=materia-gtk-theme
pkgver=20200422
_commit=b36b379c9256b67e5f63a60c6faf6912f1845b66
pkgrel=0
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 !mips !mips64"
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-$_commit.tar.gz::https://github.com/nana-4/materia-theme/archive/$_commit.tar.gz"
builddir="$srcdir/materia-theme-$_commit"

build() {
	meson \
		--prefix=/usr \
		--buildtype=plain \
		-Dgnome_shell_version=3.36 \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install

	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="gnome-themes-extra 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="gnome-themes-extra 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="gnome-themes-extra 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="gnome-themes-extra 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="136372f07be77a9a682a6194d9a9f4f5c686db27250ad6d4e4777261bf04f4986fc0dfcf6835514824b1b4ac3f078bb147a210064196fac85931e3d90760e6c7  materia-gtk-theme-b36b379c9256b67e5f63a60c6faf6912f1845b66.tar.gz"