blob: c775ff4daa67c7bbc4d2328bb604675a25ab77b4 (
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
|
# Maintainer: Edward <edward at edward-p dot xyz>
pkgname=plasma5-themes-colloid-git
_themeName=Colloid
_gitname="$_themeName-kde"
pkgver=r42.0b79bef
pkgrel=2
pkgdesc="colloid theme for KDE Plasma"
arch=('any')
url="https://github.com/vinceliuice/${_gitname}"
license=('GPL-3.0-or-later')
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')
makedepends=('git')
provides=('plasma5-themes-colloid')
source=("git+${url}.git")
sha256sums=('SKIP')
pacsave=('/usr/share/sddm/themes/Colloid-dark/theme.conf.user'
'/usr/share/sddm/themes/Colloid-light/theme.conf.user')
pkgver() {
cd ${_gitname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
# make folders
mkdir -p "${pkgdir}/usr/share/aurorae/themes"
mkdir -p "${pkgdir}/usr/share/color-schemes"
mkdir -p "${pkgdir}/usr/share/plasma/desktoptheme"
mkdir -p "${pkgdir}/usr/share/plasma/look-and-feel"
mkdir -p "${pkgdir}/usr/share/Kvantum"
mkdir -p "${pkgdir}/usr/share/sddm/themes"
mkdir -p "${pkgdir}/usr/share/wallpapers"
# aurorae theme
cp -r "${srcdir}/${_gitname}/aurorae/${_themeName}"-* "${pkgdir}/usr/share/aurorae/themes"
for theme in "${pkgdir}/usr/share/aurorae/themes/"*-nord; do
cp -r "${srcdir}/${_gitname}/aurorae/common-nord"/* $theme
done
for theme in "${pkgdir}/usr/share/aurorae/themes/"*-{light,dark,round}; do
cp -r "${srcdir}/${_gitname}/aurorae/common"/* $theme
done
# 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}-light"
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"
# wallpapers
cp -r "${srcdir}/${_gitname}/wallpapers/${_themeName}"-* "${pkgdir}/usr/share/wallpapers"
# sddm
for color in {dark,light}; do
cp -r "${srcdir}/${_gitname}/sddm/${_themeName}" "${pkgdir}/usr/share/sddm/themes/${_themeName}-${color}"
cp -r "${srcdir}/${_gitname}/sddm/images/${_themeName}-${color}.png" "${pkgdir}/usr/share/sddm/themes/${_themeName}-${color}/background.png"
cp -r "${srcdir}/${_gitname}/sddm/images/Preview-${color}.png" "${pkgdir}/usr/share/sddm/themes/${_themeName}-${color}/Preview.png"
sed -i "/\Name=/s/Colloid/Colloid-${color}/" "${pkgdir}/usr/share/sddm/themes/${_themeName}-${color}/metadata.desktop"
sed -i "/\Theme-Id=/s/Colloid/Colloid-${color}/" "${pkgdir}/usr/share/sddm/themes/${_themeName}-${color}/metadata.desktop"
sed -i "s/Colloid/Colloid-${color}/g" "${pkgdir}/usr/share/sddm/themes/${_themeName}-${color}/Main.qml"
done
}
|