core/sddm/PKGBUILD
2016-08-28 14:30:39 +01:00

60 lines
1.8 KiB
Bash

#Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/sddm
pkgname=sddm
pkgver=0.14.0
pkgrel=1
pkgdesc='QML based X11 and Wayland display manager'
arch=('x86_64')
url='http://github.com/sddm/sddm'
license=('GPL')
depends=('qt5-declarative')
makedepends=('cmake' 'extra-cmake-modules' 'python3-docutils' 'qt5-tools')
conflicts=('sddm-qt5-git' 'sddm-git')
provides=('sddm-qt5-git' 'sddm-git')
replaces=('sddm-qt5-git' 'sddm-git')
install="${pkgname}.install"
backup=('usr/share/sddm/scripts/Xsetup'
'etc/sddm.conf'
'etc/pam.d/sddm')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz"
'sddm.conf')
md5sums=('393fbed2f2e9d030e1717949867e96c8'
'7651ef1f651b0bef23b08edb58039d97')
build() {
mkdir -p 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 \
-DENABLE_PAM=ON \
-DBUILD_MAN_PAGES=ON
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
# set the default configuration, with heritage as theme
install -m 644 -p ${srcdir}/sddm.conf ${pkgdir}/etc/
# set permissions in attempt to fix autologin
install -d -g 996 -o 996 ${pkgdir}/var/lib/sddm
# auto unlock the kwallet when the user password
# and the kwallet password match (FS#1253)
echo "
# Chakra custom settings
# auto unlock the kwallet when the user password
# and the kwallet password match (FS#1253)
auth optional pam_kwallet.so kdehome=.kde4
session optional pam_kwallet.so kdehome=.kde4
auth optional pam_kwallet5.so
session optional pam_kwallet5.so" >> ${pkgdir}/etc/pam.d/sddm
}