aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vimix-theme/APKBUILD
blob: fef9f93ed0d29fb8e98d348de654abf0e8d2722d (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=vimix-theme
_datever=2020-02-24
pkgver=${_datever//-/}
pkgrel=0
pkgdesc="Flat Material Design Theme"
options="!check" # It is a theme, there is nothing to test
url="https://github.com/vinceliuice/vimix-gtk-themes"
arch="noarch"
license="GPL-3.0-only"
makedepends="bash sassc"
# These are the only variants of theme that are packaged if you want to package
# as based in the needs of the people in Alpine Linux, if you are in Alpine
# Linux and wishes to have another theme feel free to contribute
subpackages="
	vimix-ruby-dark:_dark_ruby:noarch
	vimix-ruby-dark-gnome-shell:_dark_ruby_gnome_shell:noarch
	vimix-ruby-dark-gtk2:_dark_ruby_gtk2:noarch
	vimix-ruby-dark-gtk3:_dark_ruby_gtk3:noarch
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/vinceliuice/vimix-gtk-themes/archive/$_datever.tar.gz"
builddir="$srcdir/vimix-gtk-themes-$_datever"

package() {
	install -dm0755 "$pkgdir"/usr/share/themes
}

_dark_ruby() {
	pkgdesc="Dark, Ruby hue variant of Vimix theme"

	install -dm0755 "$subpkgdir"/usr/share/themes

	"$builddir"/install.sh \
		--size laptop \
		--theme ruby \
		--color dark \
		--flat \
		-d "$subpkgdir"/usr/share/themes

	# We don't need those at the moment, if anyone wants them they can
	# add it to the package by adding a subpackage
	rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/cinnamon
	rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/metacity-1
	rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/unity
	rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/xfwm4
	rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/plank

	# Move back the assets for the gnome-shell subpackage of this theme
	# back to the mainpkg which can be moved then with the 'amove' function
	# made available by abuild
	mkdir -p "$pkgdir"/usr/share/themes/vimix-dark-laptop-ruby
	mv "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/gnome-shell \
		"$pkgdir"/usr/share/themes/vimix-dark-laptop-ruby
	mv "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/gtk-2.0 \
		"$pkgdir"/usr/share/themes/vimix-dark-laptop-ruby
	mv "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/gtk-3.0 \
		"$pkgdir"/usr/share/themes/vimix-dark-laptop-ruby
}

_dark_ruby_gnome_shell() {
	pkgdesc="GNOME Shell assets for Dark, Ruby hue variant of Vimix theme"
	install_if="vimix-ruby-dark=$pkgver-r$pkgrel gnome-shell"

	amove usr/share/themes/vimix-dark-laptop-ruby/gnome-shell
}

_dark_ruby_gtk2() {
	pkgdesc="GTK+2.0 assets for Dark, Ruby hue variant of Vimix theme"
	depends="gtk-murrine-engine gtk-engines"
	install_if="vimix-ruby-dark=$pkgver-r$pkgrel gtk+2.0"

	amove usr/share/themes/vimix-dark-laptop-ruby/gtk-2.0
}

_dark_ruby_gtk3() {
	pkgdesc="GTK+3.0 assets for Dark, Ruby hue variant of Vimix theme"
	install_if="vimix-ruby-dark=$pkgver-r$pkgrel gtk+3.0"

	amove usr/share/themes/vimix-dark-laptop-ruby/gtk-3.0
}

sha512sums="bd8508a4de541f28d9eda1feacbc5e68996f2bd502e324a9e628be62cf18f812b0e00a0c01fd8816770bdf395f5f0675aa024b346c5bdaf8c8f65807b254849f  vimix-theme-20200224.tar.gz"