summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c2c42953ee08de08c8941b51d4de968a2ac7d63 (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
# Maintainer: Santiago Burgos <santiago.burgos1089@gmail.com>

pkgname=lightdm-slick-greeter-mint-theme
_pkgname=slick-greeter
pkgver=2.2.7
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'
    'mint-themes'
    'pixman'
    'python-gobject'
    'xapp'
    'xorg-server'
)
optdepends=(
    'cinnamon-styles-artwork: enable full artwork theme in Cinnamon'
    'lightdm-settings: allow configuration of slick-greeter'
    'mint-l-theme: enable additional Mint themes'
    'numlockx: enable numerical keypad on supported keyboard'
)
makedepends=(
    'meson'
    '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=(
    'f685da6ca9d97329b4b200077d12db0ad4f9964d4515479e6c00bba721ab0626'
    '6ce9dda9e5f343e142926e7ed7aa127137214b823362653745cfe1f9d56c4492'
)

build() {
    arch-meson "${_pkgname}-${pkgver}" build
    meson compile -C build
}

package() {
    meson install -C build --no-rebuild --destdir "$pkgdir"

    # 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/"

    # 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.png "http://www.bing.com/$(wget -q -O- https://binged.it/2ZButYc | sed -e 's/<[^>]*>//g' | cut -d / -f2 | cut -d \& -f1)"

    # Installing downloaded Bing wallpaper as slick-greeter wallpaper
    install -Dm644 "${srcdir}/${_pkgname}.png" -t "${pkgdir}/usr/share/${_pkgname}/"
}