aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sddm/APKBUILD
blob: 30b228979868d9cfc17cf9afc6a1a7afd3606545 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=sddm
pkgver=0.18.1
pkgrel=2
pkgdesc="Simple Desktop Display Manager"
url="https://github.com/sddm/sddm/"
arch="all"
license="GPL-2.0-only"
depends="elogind xorg-server dbus-x11"
makedepends="cmake extra-cmake-modules qt5-qtbase-dev libxcb-dev upower-dev elogind-dev linux-pam-dev qt5-qtdeclarative-dev qt5-qttools-dev utmps-dev py-docutils"
subpackages="$pkgname-doc $pkgname-lang $pkgname-openrc"
install="sddm.pre-install"
langdir="/usr/share/sddm/translations"
pkgusers="sddm"
pkggroups="sddm"
source="$pkgname-$pkgver.tar.gz::https://github.com/sddm/$pkgname/archive/v$pkgver.tar.gz
	pam-path-fix.patch
	sddm.openrc
	"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_MAN_PAGES=ON \
		-DENABLE_JOURNALD=OFF \
		-DNO_SYSTEMD=ON \
		-DUSE_ELOGIND=ON \
		-DUID_MIN=500 \
		-DUID_MAX=65000
	make
}

check() {
	"$builddir"/test/ConfigurationTest
}

package() {
	DESTDIR="$pkgdir" make install

	mkdir -p "$pkgdir"/etc/init.d
	install -Dm755 "$srcdir"/sddm.openrc "$pkgdir"/etc/init.d/sddm
}

sha512sums="18d5b9ee5e4d022ac86e10cde1c70c5475aeaff86d41d8b9897bc26953f5b6d042a7fef1d6e727865ebeb003a730455656765ba53350a665891113afd4dfa7d8  sddm-0.18.1.tar.gz
f0b4eb7ef0581701157f9decc637629156f36f6711b9a4bae517f94d7a1df614c81bbd891c918f07ac50e2a3d1519c43ccb9eefd80282c95dd79eca0e8d90904  pam-path-fix.patch
4e6df7faf39cf4d302ad121c38287e580d8252bc46736d4ec5fae723860a45df3f103698b90826f761e361d89c824281399b0c33fcc46bcb5de8c160aa8535b7  sddm.openrc"