summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4915d2a7f4683a16e79077228932991aa1f16d1c (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
# Maintainer: Sam Burgos < sam dot burgos1089 at gmail dot com >

pkgname=lightdm-slick-greeter
_pkgname=slick-greeter
pkgver=1.2.4
_pkgver=master.mint19
pkgrel=2
pkgdesc="A slick-looking LightDM greeter"
arch=('i686' 'x86_64')
url="https://github.com/linuxmint/${_pkgname}"
license=('GPL3')
depends=('cairo'
    'freetype2'
    'gtk3'
    'libcanberra'
    'libxext'
    'lightdm'
    'pixman'
    'xorg-server')
optdepends=('numlockx: enable numerical keypad on supported keyboard')
makedepends=('gnome-common'
    'intltool'
    'vala')
backup=('etc/lightdm/slick-greeter.conf')
install=slick-greeter.install
#source=("${_pkgname}-${pkgver}.tar.gz::$url/archive/${pkgver}.tar.gz")
#sha256sums=('e00f873219f6656eae6ec99af9188b3772ab6a19cacc9daa27e9a3465ba73af2')
source=("$url/archive/${_pkgver}.tar.gz")
sha256sums=('b3daf0b7aada544f5430a222c16e44d9848384f9fc9ebefda3d06ab90a0e86b2')

#prepare() {
#  cd ${_pkgname}-${pkgver}
#  #Allow compiling with newer versions of Vala
#  patch -Np0 -i ../compile_new_vala.patch
#}

build() {
    cd ${_pkgname}-${_pkgver}
    aclocal --install
    autoreconf -vfi
    intltoolize -f
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --sbindir=/usr/bin \
        --libexecdir=/usr/lib/lightdm
    make
}

package() {
    cd ${_pkgname}-${_pkgver}
    make DESTDIR="${pkgdir}" install
    # adjust launcher name
    mv $pkgdir/usr/share/xgreeters/slick-greeter.desktop \
      $pkgdir/usr/share/xgreeters/lightdm-slick-greeter.desktop
}