summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/sddm/APKBUILD57
-rw-r--r--user/sddm/sddm.post-install3
-rw-r--r--user/sddm/xdm.confd1
3 files changed, 61 insertions, 0 deletions
diff --git a/user/sddm/APKBUILD b/user/sddm/APKBUILD
new file mode 100644
index 000000000..37eb099a8
--- /dev/null
+++ b/user/sddm/APKBUILD
@@ -0,0 +1,57 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=sddm
+pkgver=0.16.0
+pkgrel=0
+pkgdesc="Simple Desktop Display Manager"
+url="https://github.com/sddm/sddm/"
+arch="all"
+license="GPL-2.0"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev libxcb-dev upower-dev
+ consolekit2-dev linux-pam-dev qt5-qtdeclarative-dev qt5-qttools-dev"
+install="sddm.post-install"
+pkgusers="sddm"
+pkggroups="sddm"
+subpackages="$pkgname-lang $pkgname-xdm::noarch"
+langdir="/usr/share/sddm/translations"
+source="https://github.com/sddm/sddm/releases/download/v$pkgver/sddm-$pkgver.tar.xz
+ xdm.confd"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DENABLE_JOURNALD=OFF \
+ -DUID_MIN=500 \
+ -DUID_MAX=65000 \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+xdm() {
+ pkgdesc="Package to use SDDM as the system X display manager"
+ depends="sddm=$pkgver-r$pkgrel"
+ install -D -m644 "$srcdir"/xdm.confd "$subpkgdir"/etc/conf.d/xdm
+}
+
+sha512sums="114848909d3910e686f1cd0e0059a6804f7fdb45d391cdb63ce9fc319b395399bf3971534072e351fdcf525a9d2c0ed042e2b8d07679a72fa98bece9685652ca sddm-0.16.0.tar.xz
+5a03b3211e9d84ee762523631859a26b869aee2189f6845dc780c7a1e60a6658e2240e9ef9be05858708d2552ae77b594509dabe49794538f88d2ad6578d1fdf xdm.confd"
diff --git a/user/sddm/sddm.post-install b/user/sddm/sddm.post-install
new file mode 100644
index 000000000..bd75fec26
--- /dev/null
+++ b/user/sddm/sddm.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+useradd -G video -c "Display manager user" -d /var/lib/sddm -r -s /sbin/nologin -U sddm
diff --git a/user/sddm/xdm.confd b/user/sddm/xdm.confd
new file mode 100644
index 000000000..9a6cd65da
--- /dev/null
+++ b/user/sddm/xdm.confd
@@ -0,0 +1 @@
+DISPLAYMANAGER="sddm"