wok-next view sddm/receipt @ rev 20502
Swap: current mesa (which is developing and change it's version) is just mesa, while old mesa is mesa12 now (will be removed if no one old package require it).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 16 00:27:34 2018 +0200 (2018-03-16) |
parents | e6d548803bb4 |
children | d43bf7aae921 |
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
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 }