blob: 7d469a3eda6a95e3e721813f51a1c5f387eb99b3 (
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
85
|
# Maintainer: Santiago Burgos <santiago.burgos1089@gmail.com>
pkgname=lightdm-slick-greeter-mint-theme
_pkgname=slick-greeter
pkgver=2.0.6
pkgrel=1
pkgdesc="A slick-looking LightDM greeter. With additional options enabled"
arch=('x86_64')
url="https://github.com/linuxmint/${_pkgname}"
license=('GPL3')
depends=(
'cairo'
'freetype2'
'gtk3'
'libcanberra'
'libxext'
'lightdm-guest'
'lightdm-settings'
'mint-themes'
'pixman'
'python'
'xorg-server'
)
optdepends=(
'cinnamon-styles-artwork: enable full artwork theme in Cinnamon'
'mint-l-theme: enable additional Mint themes'
'numlockx: enable numerical keypad on supported keyboard'
)
makedepends=(
'gnome-common'
'intltool'
'vala'
)
provides=(
'lightdm-slick-greeter'
)
conflicts=(
'lightdm-slick-greeter'
)
backup=("etc/lightdm/${_pkgname}.conf")
install="${_pkgname}.install"
source=(
"${_pkgname}-$pkgver.tar.gz::${url}/archive/${pkgver}.tar.gz"
"${_pkgname}.conf"
)
sha256sums=(
'446fcda5776839013eb91fbf0c95fcd2aa70c331e570edda8aacd0d60b219de1'
'f1a4ea92f61d90ba2d8915da582891e09baca42cf623863bfef26022544c34df'
)
prepare() {
cd "${_pkgname}-${pkgver}"
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${_pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/lightdm
make
}
package() {
cd "${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# Download latest Bing wallpaper from internet
# Credits to https://forum.linuxconfig.org/t/how-to-download-bing-wallpaper-with-bash-shell-one-liner/3457
cd "${srcdir}"
wget -O slick-greeter.jpg "http://www.bing.com/$(wget -q -O- https://binged.it/2ZButYc | sed -e 's/<[^>]*>//g' | cut -d / -f2 | cut -d \& -f1)"
# adjust launcher name
mv "${pkgdir}/usr/share/xgreeters/${_pkgname}.desktop" \
"${pkgdir}/usr/share/xgreeters/lightdm-slick-greeter.desktop"
# Install default conf
install -Dm644 "${srcdir}/${_pkgname}.conf" -t "${pkgdir}/etc/lightdm/"
# Installing downloaded Bing wallpaper as slick-greeter wallpaper
install -Dm644 "${srcdir}/${_pkgname}.jpg" -t "${pkgdir}/usr/share/${_pkgname}/"
}
|