wok-next view lxdm/receipt @ rev 20649

grub2-efi: remove duplicate modules (thanks alanyih)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 04 10:48:37 2018 +0200 (2018-05-04)
parents 0a9729329e28
children f48456621a9d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxdm"
4 VERSION="0.5.3"
5 CATEGORY="x-window"
6 SHORT_DESC="GUI login manager for LXDE"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://wiki.lxde.org/en/LXDM"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
14 BUILD_DEPENDS="intltool xorg-libX11-dev gtk+-dev iso-codes" # + consolekit2-dev
15 SPLIT="lxdm-dev"
17 compile_rules() {
18 ./configure \
19 --sbindir=/usr/bin \
20 --libexecdir=/usr/lib/lxdm \
21 --enable-password \
22 --without-pam \
23 $CONFIGURE_ARGS &&
24 make &&
25 make install || return 1
27 # lxdm daemon
28 cp -a $stuff/init.d/ $install/etc/
30 cp -af $stuff/Xsession $install/etc/lxdm
31 cp -af $stuff/PostLogout $install/etc/lxdm
32 chown -R root:root $install
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 lxdm)
38 copy @std
39 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango \
40 xorg-libX11 xorg-libxcb"
41 SUGGESTED="iso-codes"
42 CONFIG_FILES="/etc/lxdm/LoginReady /etc/lxdm/PostLogin \
43 /etc/lxdm/PostLogout /etc/lxdm/PreLogin /etc/lxdm/PreReboot \
44 /etc/lxdm/PreShutdown /etc/lxdm/Xsession /etc/lxdm/lxdm.conf"
45 TAGS="LXDE"
46 ;;
47 *-dev)
48 copy @dev
49 DEPENDS="lxdm atk-dev cairo-dev fontconfig-dev freetype-dev \
50 gdk-pixbuf-dev glib-dev gtk+-dev pango-dev"
51 ;;
52 esac
53 }
55 post_install_lxdm() {
56 grep -q '^lxdm' "$1/etc/passwd" && return 0
57 chroot "$1/" adduser \
58 -h /var/lib/lxdm \
59 -g 'LXDE login manager' \
60 -s /bin/false \
61 -S lxdm
62 chroot "$1/" chown lxdm:lxdm /var/lib/lxdm
63 chroot "$1/" chmod 700 /var/lib/lxdm
64 }