blob: 9380ebe024116852d2848d00de3df4b23b7640f0 (
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=yaru-themes
pkgver=19.10.1
pkgrel=0
pkgdesc="Ubuntu community theme"
options="!check" # No testsuite
url="https://discourse.ubuntu.com/c/desktop/theme-refresh"
arch="noarch"
license="GPL-3.0-or-later AND CC-BY-SA-4.0"
makedepends="sassc meson glib-dev"
subpackages="
yaru-common
yaru-icons
yaru
yaru-dark
yaru-gnome-shell
"
source="$pkgname-$pkgver.tar.gz::https://github.com/ubuntu/yaru/archive/$pkgver.tar.gz"
builddir="$srcdir/yaru-$pkgver"
build() {
meson \
--prefix=/usr \
-Dcommunitheme_compat=false \
. output
ninja -C output
}
package() {
DESTDIR="$pkgdir" ninja -C output install
}
common() {
depends=""
pkgdesc="Common resources for yaru"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/sounds "$subpkgdir"/usr/share
}
icons() {
depends=""
pkgdesc="Yaru theme icons"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/icons "$subpkgdir"/usr/share
}
yaru() {
depends="yaru-common"
pkgdesc="Yaru, the Ubuntu community theme"
mkdir -p "$subpkgdir"/usr/share/themes
mv "$pkgdir"/usr/share/wayland-sessions \
"$pkgdir"/usr/share/xsessions \
"$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/themes/Yaru \
"$subpkgdir"/usr/share/themes
}
dark() {
depends="yaru-common"
pkgdesc="Yaru dark, the dark variant of the Ubuntu community theme"
mkdir -p "$subpkgdir"/usr/share/themes
mv "$pkgdir"/usr/share/themes/Yaru-dark \
"$subpkgdir"/usr/share/themes
}
shell() {
depends="yaru-common yaru"
pkgdesc="Yaru theme for the GNOME Desktop Environment"
# Automatically install if we have yaru-common (user has installed
# yaru or yaru-dark)
install_if="yaru-common=$pkgver-r$pkgrel gnome-shell"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/gnome-shell "$subpkgdir"/usr/share
}
sha512sums="c76a4950f3bb6097e126f0767075b6b618e6c2102822941662086241b6b6631816466971f88f010fd9f0d0d8e19c53b35432fe21f6811236478d46be9e31654c yaru-themes-19.10.1.tar.gz"
|