wok-next view sddm/receipt @ rev 21362
iptraf: new WGET_URL
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 13 08:05:00 2020 +0100 (2020-04-13) |
parents | f48456621a9d |
children |
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/svn/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 libxcb-dev qt5-dev mesa-dev \
16 python-docutils"
17 SPLIT="$PACKAGE-theme-elarun $PACKAGE-theme-maldives $PACKAGE-theme-maya $PACKAGE"
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
35 cd build
36 cmake \
37 -DCMAKE_BUILD_TYPE=Release \
38 -DCMAKE_INSTALL_PREFIX=/usr \
39 -DENABLE_JOURNALD=OFF \
40 -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
41 -DBUILD_MAN_PAGES=ON \
42 -DENABLE_PAM=OFF \
43 -DNO_SYSTEMD=ON \
44 -Wno-dev \
45 .. &&
46 make &&
47 make install || return 1
49 install -v -dm755 -o sddm -g sddm $install/var/lib/sddm
50 }
52 genpkg_rules() {
53 case $PACKAGE in
54 *-theme-elarun)
55 copy elarun/
56 CAT="customization|theme Elarun"
57 ;;
58 *-theme-maldives)
59 copy maldives/
60 CAT="customization|theme Maldives"
61 ;;
62 *-theme-maya)
63 copy maya/
64 CAT="customization|theme Maya"
65 ;;
66 sddm)
67 copy @std @rm
68 rm -r $fs/etc/pam.d # PAM disabled, but installed anyway
69 DEPENDS="sddm-theme-maya qt5-base qt5-declarative 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 }