summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb9d6f0c18485a7ebfe7dd1bac6a96bcbd1685cf (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
# Maintainer: Nikita Boldasov <renom7 at gmail dot com>

pkgname=lightdm-qt5-greeter-git
_pkgname=lightdm-qt5-greeter
_giturl=https://github.com/rezso/$_pkgname
pkgver=r111.ddba411
pkgrel=1
pkgdesc='lightdm-qt5-greeter is a simple frontend for the lightdm displaymanager, written in c++ and qt5.'
arch=('x86_64')
url='https://github.com/rezso/lightdm-qt5-greeter'
license=('LGPL2.1')
depends=('qt5-base' 'liblightdm-qt5' 'lightdm')
makedepends=('cmake' 'git')
provides=("$_pkgname")
conflicts=("$_pkgname")
backup=("etc/lightdm/$_pkgname.conf")
source=("$_pkgname::git+$_giturl.git")
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$_pkgname"

  mkdir build
}

build() {
  cd $_pkgname/build

  cmake ..

  make
}

package() {
  cd $_pkgname/build

  make DESTDIR="$pkgdir/" install
}