void-packages/srcpkgs/sddm/template

39 lines
1.2 KiB
Bash

# Template file for 'sddm'
pkgname=sddm
version=0.20.0
revision=2
build_style=cmake
configure_args="-DBUILD_MAN_PAGES=ON -DNO_SYSTEMD=ON -DUSE_ELOGIND=ON
-DLOGIN_DEFS_PATH=${XBPS_SRCPKGDIR}/shadow/files/login.defs
-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf
-DSDDM_INITIAL_VT=7"
hostmakedepends="extra-cmake-modules pkg-config python3-docutils"
makedepends="qt5-declarative-devel qt5-tools-devel pam-devel elogind-devel"
depends="dbus"
short_desc="QML based X11 display manager"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later, CC-BY-3.0"
homepage="https://github.com/sddm/sddm"
changelog="https://raw.githubusercontent.com/sddm/sddm/develop/ChangeLog"
distfiles="https://github.com/sddm/sddm/archive/v${version}.tar.gz"
checksum=467c8bd91e0d4f76d4bc4e57ab334f1f48a33478482ba9476d93b0b3d7ace9fb
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" sddm qt5-host-tools qt5-qmake qt5-tools"
fi
system_accounts="sddm"
sddm_homedir="/var/lib/sddm"
sddm_groups="video"
conf_files="
/etc/pam.d/sddm
/etc/pam.d/sddm-greeter
/etc/pam.d/sddm-autologin"
make_dirs="/var/lib/sddm 0755 sddm sddm"
post_install() {
vsed -i '/tally/d' ${DESTDIR}/etc/pam.d/sddm-autologin
vsv sddm
vlicense LICENSE.CC-BY-3.0
}