Initial commit
This commit is contained in:
commit
9c3746ec9f
9 changed files with 726 additions and 0 deletions
105
PKGBUILD
Normal file
105
PKGBUILD
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
||||
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
||||
# Contributor: Antonio Rojas <arojas@archlinux.org>
|
||||
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
||||
|
||||
pkgname=sddm-black-screen-fix
|
||||
_pkgname=sddm
|
||||
pkgver=0.21.0
|
||||
pkgrel=3
|
||||
pkgdesc='QML based X11 and Wayland display manager'
|
||||
arch=(
|
||||
x86_64
|
||||
)
|
||||
url='https://github.com/sddm/sddm'
|
||||
license=(
|
||||
GPL-2.0-only
|
||||
)
|
||||
depends=(
|
||||
bash
|
||||
gcc-libs
|
||||
glibc
|
||||
libxau
|
||||
libxcb
|
||||
pam
|
||||
qt6-base
|
||||
qt6-declarative
|
||||
systemd-libs
|
||||
ttf-font
|
||||
xorg-server
|
||||
xorg-xauth
|
||||
)
|
||||
makedepends=(
|
||||
extra-cmake-modules
|
||||
git
|
||||
python-docutils
|
||||
qt5-base
|
||||
qt5-declarative
|
||||
qt5-tools
|
||||
qt6-tools)
|
||||
optdepends=(
|
||||
'qt5-base: for using Qt5 themes'
|
||||
'qt5-declarative: for using Qt5 themes'
|
||||
)
|
||||
backup=(
|
||||
'usr/share/sddm/scripts/Xsetup'
|
||||
'usr/share/sddm/scripts/Xstop'
|
||||
'etc/pam.d/sddm'
|
||||
'etc/pam.d/sddm-autologin'
|
||||
'etc/pam.d/sddm-greeter'
|
||||
)
|
||||
provides=(
|
||||
"display-manager"
|
||||
"sddm"
|
||||
)
|
||||
conflicts=(
|
||||
"sddm"
|
||||
)
|
||||
source=(
|
||||
"git+https://github.com/$_pkgname/$_pkgname#tag=v$pkgver"
|
||||
"2103.patch"
|
||||
)
|
||||
b2sums=('956fd205369c022d18e67e8a77ca7d571b145c339be923d73bac95d9ff78f2f3c6648b5f682408fd6750411cf877c38de67cce631d310e129c0013a2cd868844'
|
||||
'c8a00434660e35cd009edb8b0f0198e8eb5da3bfff7f7b4c421a372a93c8a4f536e5ef0bbd3fa970870e3b5d8d569d70c15737a7875471ac9270535624b22f9d')
|
||||
|
||||
prepare() {
|
||||
git -C $_pkgname cherry-pick -n 228778c2b4b7e26db1e1d69fe484ed75c5791c3a # Fix build with cmake 4
|
||||
patch -d $_pkgname -Np1 -i ../2103.patch #https://github.com/sddm/sddm/pull/2103
|
||||
}
|
||||
|
||||
build() {
|
||||
local cmake_options=(
|
||||
-S "$_pkgname"
|
||||
-B build
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_INSTALL_LIBEXECDIR=/usr/lib/sddm
|
||||
-D BUILD_WITH_QT6=ON
|
||||
-D DBUS_CONFIG_DIR=/usr/share/dbus-1/system.d
|
||||
-D DBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf
|
||||
-D BUILD_MAN_PAGES=ON
|
||||
-D UID_MAX=60513
|
||||
)
|
||||
cmake "${cmake_options[@]}"
|
||||
cmake --build build
|
||||
|
||||
cmake -B build5 -S $_pkgname \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
cmake --build build5/src/greeter
|
||||
cmake --build build5/components
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
DESTDIR="$pkgdir" cmake --install build5/src/greeter
|
||||
DESTDIR="$pkgdir" cmake --install build5/components
|
||||
|
||||
install -d "$pkgdir"/usr/lib/sddm/sddm.conf.d
|
||||
"$pkgdir"/usr/bin/sddm --example-config > "$pkgdir"/usr/lib/sddm/sddm.conf.d/default.conf
|
||||
# Don't set PATH in sddm.conf
|
||||
sed -r 's|DefaultPath=.*|DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin|g' -i "$pkgdir"/usr/lib/sddm/sddm.conf.d/default.conf
|
||||
# Unset InputMethod https://github.com/sddm/sddm/issues/952
|
||||
sed -e "/^InputMethod/s/qtvirtualkeyboard//" -i "$pkgdir"/usr/lib/sddm/sddm.conf.d/default.conf
|
||||
}
|
||||
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue