summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c66832cb08ddfb0127cb0c77138f5d3c3c18acd7 (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
# Maintainer: Peter Mattern <pmattern at arcor dot de>
# Contributor: Bhushan Shah
# Contributor: Antonio Rojas

_pkgname=sddm-kcm
pkgname=$_pkgname-git
pkgver=5.26.90.35.gbaa6c20
pkgrel=1
pkgdesc='KDE Config Module for SDDM'
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/kdereview/sddm-kcm/'
license=('GPL')
depends=('kcmutils-git')
makedepends=('git' 'extra-cmake-modules-git' 'knewstuff-git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+https://invent.kde.org/plasma/sddm-kcm.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --always | sed 's:^v::;s:-:.:g'
}

build() {
  mkdir -p build && cd build
  cmake ${srcdir}/${_pkgname} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}