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