blob: 699b31aab0bee68e7317fabb2ea61c26f8d70d81 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=gnome-shell-extension-material-you-theme-git
_uuid='material-you-theme@asubbiah.com'
pkgver=r98.c04b0b7
pkgrel=3
pkgdesc="Applies generated libadwaita theme from wallpaper using Material You"
arch=('any')
url="https://github.com/avanishsubbiah/material-you-theme"
license=('GPL3')
depends=('adw-gtk3' 'gnome-shell')
makedepends=('git' 'npm')
optdepends=('gdm-tools: set the GDM theme')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/avanishsubbiah/material-you-theme.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/material-you-theme"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/material-you-theme"
}
build() {
cd "$srcdir/material-you-theme"
make update-po
# Does not detect system Node.js, NPM, or SassC,
# so we'll install in the extension folder like it tries to do anyway
export npm_config_cache="$srcdir/npm_cache"
npm install --prefix "${_uuid}"
gnome-extensions pack -f \
./"${_uuid}"/ \
--extra-source=shell \
--extra-source=blend \
--extra-source=hct \
--extra-source=palettes \
--extra-source=quantize \
--extra-source=scheme \
--extra-source=score \
--extra-source=utils \
--extra-source=base_presets.js \
--extra-source=color_mappings.js \
--extra-source=package.json \
--extra-source=node_modules \
-o .
}
package() {
cd "$srcdir/material-you-theme"
install -d "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}"
bsdtar xvf "${_uuid}.shell-extension.zip" -C \
"$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/"
install -Dm644 "${_uuid}/schemas/org.gnome.shell.extensions.material-you-theme.gschema.xml" -t \
"$pkgdir/usr/share/glib-2.0/schemas/"
rm -rf "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/schemas/"
}
|