summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be959cbee4808f24015b6c56d2970bb0c2109f02 (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
# Maintainer: Daniel Menelkir <dmenelkir at gmail dot com>
pkgname=plasma5-themes-whitesur-git
_themeName=WhiteSur
_gitname="$_themeName-kde"
pkgver=r114.2b4bcc7
pkgrel=1
pkgdesc="MacOS big sur like theme for KDE Plasma"
arch=('any')
url="https://github.com/vinceliuice/${_gitname}"
license=('GPL3')
optdepends=('plasma-desktop: for included plasma theme' 'kvantum-qt5: for included kvantum theme' 'sddm: for included sddm theme' 'whitesur-icon-theme-git: matching icon theme' 'whitesur-cursor-theme-git: matching cursor theme' 'whitesur-gtk-theme-git: matching gtk theme' 'latte-dock: for included latte theme') 
makedepends=('git')
provides=('whitesur-kde-theme')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
   cd ${_gitname}
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
   # make folders
   install -d "${pkgdir}/usr/share/aurorae/themes"
   # https://gist.github.com/RShirohara/83decd90c69fee0995e5046c8c875469
   cp -r "${srcdir}/${_gitname}/aurorae/normal"/* "${pkgdir}/usr/share/aurorae/themes"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur_x1.25"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur_x1.5"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur_x1.75"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark_x1.25"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark_x1.5"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark_x1.75"
   cp -r "${srcdir}/${_gitname}/aurorae/sharp"/* "${pkgdir}/usr/share/aurorae/themes"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-sharp"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-sharp_x1.25"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-sharp_x1.5"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-sharp_x1.75"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark-sharp"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark-sharp_x1.25"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark-sharp_x1.5"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark-sharp_x1.75"
   cp -r "${srcdir}/${_gitname}/aurorae/opaque"/* "${pkgdir}/usr/share/aurorae/themes"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-opaque"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-opaque_x1.25"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-opaque_x1.5"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-opaque_x1.75"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark-opaque"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark-opaque_x1.25"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark-opaque_x1.5"
   cp -r "${srcdir}/${_gitname}/aurorae/common/assets-dark"/*.svg "${pkgdir}/usr/share/aurorae/themes/WhiteSur-dark-opaque_x1.75"

   install -d "${pkgdir}/usr/share/color-schemes"
   install -d "${pkgdir}/usr/share/plasma/desktoptheme"
   install -d "${pkgdir}/usr/share/plasma/look-and-feel"
   install -d "${pkgdir}/usr/share/Kvantum"
   install -d "${pkgdir}/usr/share/sddm/themes"
   install -d "${pkgdir}/usr/share/wallpapers"
   
   # aurorae theme
   cp -r "${srcdir}/${_gitname}/aurorae"/* "${pkgdir}/usr/share/aurorae/themes"
   # kvantum theme
   cp -r "${srcdir}/${_gitname}/Kvantum"/* "${pkgdir}/usr/share/Kvantum"
   # color scheme
   cp -r "${srcdir}/${_gitname}/color-schemes"/* "${pkgdir}/usr/share/color-schemes"
   # desktop theme
   cp -r "${srcdir}/${_gitname}/plasma/desktoptheme"/${_themeName}* "${pkgdir}/usr/share/plasma/desktoptheme"
   cp -r "${srcdir}/${_gitname}/plasma/desktoptheme/icons" "${pkgdir}/usr/share/plasma/desktoptheme/${_themeName}"
   cp -r "${srcdir}/${_gitname}/plasma/desktoptheme/icons" "${pkgdir}/usr/share/plasma/desktoptheme/${_themeName}-alt"
   cp -r "${srcdir}/${_gitname}/plasma/desktoptheme/icons" "${pkgdir}/usr/share/plasma/desktoptheme/${_themeName}-dark"
   # look and feel
   cp -r "${srcdir}/${_gitname}/plasma/look-and-feel"/* "${pkgdir}/usr/share/plasma/look-and-feel"
   # wallpaper
   cp -r "${srcdir}/${_gitname}/wallpaper"/* "${pkgdir}/usr/share/wallpapers"
   # sddm
   cp -r "${srcdir}/${_gitname}/sddm/${_themeName}" "${pkgdir}/usr/share/sddm/themes"
   
   # latte
   install -d "$HOME/.config/latte"
   cp -r "${srcdir}/${_gitname}/latte-dock"/* "$HOME/.config/latte"
   printf "%b" "\e[1;33m==> WARNING: \e[0mThe package installed a latte-dock theme which is not deleted on removal. (Located in $HOME/.config/latte)\n"

}