core/sddm/PKGBUILD

50 lines
1.4 KiB
Bash
Raw Normal View History

#Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/sddm
pkgname=sddm
2017-10-09 08:44:09 +08:00
pkgver=0.16.0
2017-09-01 10:19:55 +08:00
pkgrel=1
pkgdesc='QML based X11 and Wayland display manager'
arch=('x86_64')
url='http://github.com/sddm/sddm'
license=('GPL')
2017-09-01 10:19:55 +08:00
depends=('qt5-declarative' 'xorg-xauth' 'xorg-server')
makedepends=('extra-cmake-modules' 'python3-docutils' 'qt5-tools')
install="${pkgname}.install"
2016-12-05 12:36:07 +08:00
options=('emptydirs')
backup=('usr/share/sddm/scripts/Xsetup'
'etc/sddm.conf'
'etc/pam.d/sddm')
2017-09-01 10:19:55 +08:00
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz"
2015-11-12 08:18:18 +08:00
'sddm.conf')
2017-10-09 08:44:09 +08:00
md5sums=('8d41b09ff9197b182b093af82e3958d5'
2017-09-01 10:19:55 +08:00
'7375f6c4e0be2336b31eec2bec820048')
prepare() {
[[ -e build ]] && rm -rf build
mkdir -p build
}
build() {
cd build
2017-09-01 10:19:55 +08:00
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 \
2015-11-12 08:18:18 +08:00
-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
2016-02-26 05:00:47 +08:00
install -d -g 996 -o 996 ${pkgdir}/var/lib/sddm
}