summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b084755a115e1f489971ba5f930d87a3e4fd3a10 (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
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=sddm
pkgver=0.12.0
pkgrel=5
pkgdesc='QML based X11 display manager'
arch=('i686' 'x86_64')
url='http://github.com/sddm/sddm'
license=('GPL')
depends=('qt5-declarative')
makedepends=('cmake' 'python-docutils' 'qt5-tools')
install="${pkgname}.install"
backup=('usr/share/sddm/scripts/Xsetup'
        'etc/pam.d/sddm')
provides=('display-manager')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz"
	fix-segfault.patch::"https://github.com/davispuh/sddm/commit/671c11d0.patch"
	CVE-2015-0856.patch::"https://github.com/sddm/sddm/commit/4cfed6b0.patch"
	multi-monitor.patch::"https://patch-diff.githubusercontent.com/raw/sddm/sddm/pull/511.patch")
md5sums=('e3261ac93a50c71c973cc79b85387765'
         '208f3b1b49792984989172dd809a03bf'
         '80eb7eddd8d3d259a6c28e83b9394575'
         '1704e84c68e6935923d223b6a4c4b198')

prepare() {
  mkdir -p build

# Fix segfault https://github.com/sddm/sddm/issues/489
  cd $pkgname-$pkgver
  patch -p1 -i ../fix-segfault.patch
# Fix CVE-2015-0856
  patch -p1 -i ../CVE-2015-0856.patch
# Fix multi-monitor support https://github.com/sddm/sddm/issues/496
  patch -p1 -i ../multi-monitor.patch
}

build() {
  cd build
  cmake ../${pkgname}-${pkgver} \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/sddm \
        -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
        -DBUILD_MAN_PAGES=ON
  make
}

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