blob: ce96f33c0591f77bd5f39b49efda9c5772c0eb52 (
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
|
# Contributor: Chocopwowwa <chocopowwwa@gmail.com>
# Contributor: Rafed Ramzi <rafedramzi@gmail.com>
pkgname=sweet-gtk-theme
_pkgname=Sweet
pkgver=5.0
pkgrel=1
pkgdesc="Light and dark colorful Gtk3.20+ theme"
arch=('any')
url='https://github.com/EliverLara/Sweet'
license=('GPL3')
conflicts=('sweet-theme')
makedepends=('git')
_commit=858e3e4a8df55ee17af38ee16214cd7cd370ac3e
source=(git+$url.git#commit=$_commit)
sha256sums=('bc442861036851e613795d3fd94a52f49dfc8cee57f1220801e863f41425058e')
prepare() {
# Clean out some unneeded files to make installation a little more straightforward
find $_pkgname -type f -name "*scss" -exec rm {} \;
rm -fr $_pkgname/xfwm4/{assets,render_assets.fish}
}
package() {
cd $_pkgname
# Generic assets
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname {LICENSE,README.md,index.theme}
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/assets assets/*
# Cinnamon
cp -r cinnamon "${pkgdir}"/usr/share/themes/$_pkgname/
# GNOME
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/gnome-shell/ gnome-shell/gnome-shell.css
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/gnome-shell/assets gnome-shell/assets/*
# GTK2
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/gtk-2.0 gtk-2.0/{gtkrc,main.rc}
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/gtk-2.0/apps gtk-2.0/apps/*
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/gtk-2.0/assets gtk-2.0/assets/*
# GTK3
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/gtk-3.0 gtk-3.0/{gtk-dark.css,gtk.css,thumbnail.png}
# GTK4
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/gtk-4.0 gtk-4.0/{gtk-dark.css,gtk.css,thumbnail.png}
# Metacity
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/metacity-1 metacity-1/*
# xfwm
install -Dm644 -t "${pkgdir}"/usr/share/themes/$_pkgname/xfwm4 xfwm4/*
}
|