aboutsummaryrefslogtreecommitdiffstats
path: root/community/sddm/APKBUILD
blob: ae37beaf3e0d68953de986a235bc8197fb43a10f (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=7
pkgdesc="Simple Desktop Display Manager"
url="https://github.com/sddm/sddm/"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="GPL-2.0-only"
depends="elogind xorg-server dbus-x11 upower"
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
	py3-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/sddm/archive/v$pkgver.tar.gz
	pam-path-fix.patch
	sddm.initd
	"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=None \
		-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
	install -Dm755 "$srcdir"/sddm.initd "$pkgdir"/etc/init.d/sddm
}

sha512sums="18d5b9ee5e4d022ac86e10cde1c70c5475aeaff86d41d8b9897bc26953f5b6d042a7fef1d6e727865ebeb003a730455656765ba53350a665891113afd4dfa7d8  sddm-0.18.1.tar.gz
f0b4eb7ef0581701157f9decc637629156f36f6711b9a4bae517f94d7a1df614c81bbd891c918f07ac50e2a3d1519c43ccb9eefd80282c95dd79eca0e8d90904  pam-path-fix.patch
9a72f97d3de5d66ede593263e35e4030a2720371782c7767f444b1bbae3c1a358b349cb43be389814713b92d8b27174293bbdbd5b1d1c837abef1b6a6d082f98  sddm.initd"