blob: f633e88ce2a1f6073ee9fc7559263fa9b954c0e0 (
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
|
# Maintainer: Matteo Salonia <saloniamatteo@protonmail.com>
pkgname=saluto-lightdm-theme-dwm
_pkgname=Saluto
pkgver=3.0.0
pkgrel=1
pkgdesc="Saluto: Litarvan LightDM Theme Fork, with added support for DWM"
arch=('any')
url="https://github.com/Demonstrandum/Saluto"
license=('MIT')
depends=('lightdm' 'lightdm-webkit2-greeter')
makedepends=('git' 'npm')
conflicts=("saluto-lightdm-theme" "saluto-lightdm-theme-git")
provides=("saluto-lightdm-theme")
md5sums=(
'SKIP' # git repo
'4b077e28d1dcde5ead555d6f433da37b' # dwm.desktop
'6db4d11c5632c5b41bad0ac1b3b581b1' # dwm-lightdm.diff
'c7a7e64586bebde20886cc731bf2d38c' # dwm-vue.diff
'8f007861efc61ced5abf9ee74030afb9' # dwm.png
)
pkgver() {
cd "${_pkgname}"
_pkgver=$(awk '/VERSION/ {print $3}' config.mk|head -1)
echo "${_pkgver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
source=(
"git+https://github.com/Demonstrandum/Saluto"
"dwm.desktop"
"dwm-lightdm.diff"
"dwm-vue.diff"
"dwm.png"
)
prepare() {
# Add dwm logo
mv dwm.png "$srcdir/Saluto/src/assets/default_images/desktops/dwm.png"
# Add patches that include dwm logo
mv dwm-vue.diff "$srcdir/Saluto/src/components/"
mv dwm-lightdm.diff "$srcdir/Saluto/src/"
# Check if dwm desktop file exists
[[ -f "/usr/share/xsessions/dwm.desktop" ]] && printf "dwm desktop file already exists, skipping...\n" || printf "dwm desktop file DOES NOT exist, creating...\n"; sudo mv dwm.desktop /usr/share/xsessions/dwm.desktop
# Patch "lightdm.js"
cd "$srcdir/Saluto/src"
patch < dwm-lightdm.diff
# Patch "SelectItem.vue"
cd "$srcdir/Saluto/src/components"
patch < dwm-vue.diff
}
package() {
# Install saluto
cd "$srcdir/Saluto" && sh install.sh
# Choose lightdm-webkit2 as main LightDM greeter
sudo sed -i "s/^greeter-session = [a-zA-Z]*\-[a-zA-Z0-9]*\-greeter/greeter-session = lightdm-webkit2-greeter/g" /etc/lightdm/lightdm.conf
# Choose "saluto" as webkit2 greeter
sudo sed -i "s/webkit_theme[ \t]*= [a-zA-Z0-9]*/webkit_theme = saluto/" /etc/lightdm/lightdm-webkit2-greeter.conf
}
|