wok-next view sddm/receipt @ rev 20806
I. node update: security -> https://nodejs.org/en/blog/vulnerability/june-2018-security-releases/ 9.5.0 -> 9.11.2 II. add checksum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 08:26:54 2018 +0000 (2018-06-13) |
parents | c0521c689857 |
children | f48456621a9d |
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 mesa-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 @rm
67 rm -r $fs/etc/pam.d # PAM disabled, but installed anyway
68 DEPENDS="sddm-theme-maya qt5-base qt5-declarative xorg-libxcb"
69 ;;
70 esac
71 }
73 post_install_sddm() {
74 if ! grep -q sddm "$1/etc/passwd"; then
75 chroot "$1/" addgroup -g 64 -S sddm
76 chroot "$1/" adduser -g "SDDM Daemon" -h /var/lib/sddm -u 64 \
77 -G sddm -s /bin/false -D sddm
78 fi
79 }