PKGBUILD 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
  3. # Maintainer (Arch): Antonio Rojas <arojas@archlinux.org>
  4. # Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
  5. pkgname=sddm
  6. pkgver=0.18.1
  7. pkgrel=1
  8. pkgrel+=.nonsystemd1
  9. pkgdesc='QML based X11 and Wayland display manager'
  10. arch=('x86_64')
  11. arch+=('i686' 'armv7h')
  12. url='http://github.com/sddm/sddm'
  13. license=('GPL')
  14. depends=('qt5-declarative' 'xorg-xauth' 'xorg-server' 'elogind')
  15. makedepends=('extra-cmake-modules' 'python-docutils' 'qt5-tools')
  16. makedepends+=('pcre2')
  17. backup=('usr/share/sddm/scripts/Xsetup'
  18. 'usr/share/sddm/scripts/Xstop'
  19. 'etc/pam.d/sddm'
  20. 'etc/pam.d/sddm-autologin'
  21. 'etc/pam.d/sddm-greeter')
  22. provides=('display-manager' 'sddm-elogind')
  23. replaces=('sddm-elogind')
  24. conflicts=(${replaces[@]})
  25. source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz"
  26. sddm.sysusers sddm.tmpfiles)
  27. sha256sums=('07296fc747010a5dd58a45f16c3224b439997afad42566e4b043c841b1b71700'
  28. '9fce66f325d170c61caed57816f4bc72e9591df083e89da114a3bb16b0a0e60f'
  29. 'db625f2a3649d6d203e1e1b187a054d5c6263cadf7edd824774d8ace52219677')
  30. prepare() {
  31. mkdir -p build
  32. }
  33. build() {
  34. cd build
  35. cmake ../${pkgname}-${pkgver} \
  36. -DCMAKE_INSTALL_PREFIX=/usr \
  37. -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/sddm \
  38. -DDBUS_CONFIG_DIR=/usr/share/dbus-1/system.d \
  39. -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
  40. -DUSE_ELOGIND=yes \
  41. -DNO_SYSTEMD=yes \
  42. -DBUILD_MAN_PAGES=ON
  43. make
  44. }
  45. package() {
  46. cd build
  47. make DESTDIR="${pkgdir}" install
  48. install -Dm644 "$srcdir"/sddm.sysusers "$pkgdir"/usr/lib/sysusers.d/sddm.conf
  49. install -Dm644 "$srcdir"/sddm.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/sddm.conf
  50. install -d "$pkgdir"/usr/lib/sddm/sddm.conf.d
  51. "$pkgdir"/usr/bin/sddm --example-config > "$pkgdir"/usr/lib/sddm/sddm.conf.d/default.conf
  52. # Don't set PATH in sddm.conf
  53. sed -r 's|DefaultPath=.*|DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin|g' -i "$pkgdir"/usr/lib/sddm/sddm.conf.d/default.conf
  54. # Unset InputMethod https://github.com/sddm/sddm/issues/952
  55. sed -e "/^InputMethod/s/qtvirtualkeyboard//" -i "$pkgdir"/usr/lib/sddm/sddm.conf.d/default.conf
  56. }