wok-next view sddm/receipt @ rev 20355
Up grub2 (2.02)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 19 18:31:14 2017 +0100 (2017-11-19) |
parents | |
children | c0521c689857 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="sddm"
4 VERSION="0.16.0"
5 CATEGORY="x-window"
6 SHORT_DESC="QML based X11 and Wayland display manager"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2 CC-BY-3"
9 WEB_SITE="https://github.com/sddm/sddm"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/sddm.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://github.com/sddm/sddm/releases/download/v$VERSION/$TARBALL"
15 BUILD_DEPENDS="cmake extra-cmake-modules xorg-libxcb-dev qt5-dev mesa17-dev \
16 python-docutils"
17 SPLIT="sddm-theme-elarun sddm-theme-maldives sddm-theme-maya sddm"
19 compile_rules() {
20 sed -i '/UPOWER_SERVICE)/ s|^|//|' src/daemon/PowerManager.cpp
21 sed -i '/\$@$/ s|exec|& ck-launch-session|' data/scripts/Xsession
23 # Need login.defs that we don't use
24 cat > /etc/login.defs <<EOT
25 UID_MIN 1000
26 UID_MAX 1999
27 EOT
29 # Create dedicated user/group for installation
30 addgroup -g 64 -S sddm
31 adduser -g "SDDM Daemon" -h /var/lib/sddm -u 64 -G sddm \
32 -s /bin/false -D sddm
34 mkdir build; cd build
35 cmake \
36 -DCMAKE_BUILD_TYPE=Release \
37 -DCMAKE_INSTALL_PREFIX=/usr \
38 -DENABLE_JOURNALD=OFF \
39 -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
40 -DBUILD_MAN_PAGES=ON \
41 -DENABLE_PAM=OFF \
42 -DNO_SYSTEMD=ON \
43 -Wno-dev \
44 .. &&
45 make &&
46 make install || return 1
48 install -v -dm755 -o sddm -g sddm $install/var/lib/sddm
49 }
51 genpkg_rules() {
52 case $PACKAGE in
53 sddm-theme-elarun)
54 copy elarun/
55 CAT="customization|theme Elarun"
56 ;;
57 sddm-theme-maldives)
58 copy maldives/
59 CAT="customization|theme Maldives"
60 ;;
61 sddm-theme-maya)
62 copy maya/
63 CAT="customization|theme Maya"
64 ;;
65 sddm)
66 copy @std
67 remove_already_packed
68 rm -r $fs/etc/pam.d # PAM disabled, but installed anyway
69 DEPENDS="sddm-theme-maya qt5-base qt5-declarative xorg-libxcb"
70 ;;
71 esac
72 }
74 post_install_sddm() {
75 if ! grep -q sddm "$1/etc/passwd"; then
76 chroot "$1/" addgroup -g 64 -S sddm
77 chroot "$1/" adduser -g "SDDM Daemon" -h /var/lib/sddm -u 64 \
78 -G sddm -s /bin/false -D sddm
79 fi
80 }