blob: 5a339553c4c7c4ff1190c5ac002d22d8ae5450a9 (
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
|
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
pkgbase=yaru-remix-git
pkgname=(yaru-remix-gtk-theme-git
yaru-remix-gnome-shell-theme-git
yaru-remix-icon-theme-git
yaru-remix-wallpaper-git)
pkgver=r6.a1fdac60
pkgrel=6
epoch=1
pkgdesc="Yaru-remix is a fork of Yaru theme"
arch=(any)
url="https://github.com/Muqtxdir/${pkgbase%-git}"
license=(
'GPL-3.0-or-later AND LGPL-3.0-or-later AND LGPL-2.1-or-later AND CC-BY-NC-SA-4.0'
)
makedepends=(
'meson'
'sassc'
'git'
)
options=('!strip' '!buildflags' 'staticlibs')
source=("${pkgbase%-git}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgbase%-git}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
arch-meson yaru-remix build
meson configure build
ninja -C build
}
_delete_all_from_pkgdir_except() {
if [[ "$1" != "gtk-theme" ]]; then
rm -r "${pkgdir}"/usr/share/themes/Yaru-remix-light/{metacity-*,gtk-*,index.theme}
rm -r "${pkgdir}"/usr/share/themes/Yaru-remix-dark/{metacity-*,gtk-*,index.theme}
rm -r "${pkgdir}"/usr/share/themes/Yaru-remix/{metacity-*,gtk-*,index.theme}
fi
if [[ "$1" != "gnome-shell-theme" ]]; then
rm -r "${pkgdir}"/usr/share/themes/Yaru-remix/gnome-shell
rm -r "${pkgdir}"/usr/share/themes/Yaru-remix-light/gnome-shell
rm -r "${pkgdir}"/usr/share/themes/Yaru-remix-dark/gnome-shell
rm -r "${pkgdir}"/usr/share/gnome-shell
fi
if [[ "$1" != "icon-theme" ]]; then
rm -r "${pkgdir}"/usr/share/icons
fi
if [[ "$1" != "wallpaper" ]]; then
rm -r "${pkgdir}"/usr/share/backgrounds
rm -r "${pkgdir}"/usr/share/gnome-background-properties
fi
# Delete remaining empty directories:
find "${pkgdir}" -type d -empty -delete
}
package_yaru-remix-gtk-theme-git() {
pkgdesc="Yaru-remix gtk theme"
depends=(
'gtk3'
'gdk-pixbuf2'
'gtk-engine-murrine'
'gnome-themes-extra'
)
provides=('yaru-remix-gtk-theme')
conflicts=('yaru-remix-gtk-theme-git')
DESTDIR="$pkgdir" ninja -C build install 2>&1 >> install.log
_delete_all_from_pkgdir_except "gtk-theme"
}
package_yaru-remix-gnome-shell-theme-git() {
pkgdesc="Yaru-remix gnome shell theme"
depends=(
'gnome-shell<=1.40'
)
provides=('yaru-remix-gnome-shell-theme')
conflicts=('yaru-remix-gnome-shell-theme')
DESTDIR="$pkgdir" ninja -C build install 2>&1 >> install.log
_delete_all_from_pkgdir_except "gnome-shell-theme"
}
package_yaru-remix-icon-theme-git() {
pkgdesc="Yaru-remix icon theme"
depends=(
'hicolor-icon-theme'
'gtk-update-icon-cache'
'librsvg'
'humanity-icon-theme'
)
provides=('yaru-remix-icon-theme')
conflicts=('yaru-remix-icon-theme')
DESTDIR="$pkgdir" ninja -C build install 2>&1 >> install.log
_delete_all_from_pkgdir_except "icon-theme"
}
package_yaru-remix-wallpaper-git() {
pkgdesc="Yaru-remix wallpaper theme"
provides=('yaru-remix-wallpaper')
conflicts=('yaru-remix-wallpaper')
DESTDIR="$pkgdir" ninja -C build install 2>&1 >> install.log
_delete_all_from_pkgdir_except "wallpaper"
}
|