wok-6.x view lxdm/receipt @ rev 24568

sokojs: add shrink.sh (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 26 16:37:15 2022 +0000 (2022-02-26)
parents ee53899c6189
children 232ba43d30af
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://wiki.lxde.org/en/LXDM"
11 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
12 TAGS="LXDE"
14 DEPENDS="xorg-libX11 gtk+ slitaz-configs"
15 BUILD_DEPENDS="xorg-dev gtk+-dev"
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/lxde/files/lxdm/ 2>/dev/null | \
20 sed "/scope=\"row/!d;/$PACKAGE%20/!d;s|.*$PACKAGE%20||;s|/.*||;q"
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --libexecdir=/usr/lib/lxdm \
28 --sysconfdir=/etc \
29 --without-pam \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc $fs/usr/share
38 cp -a $install/etc/lxdm $fs/etc
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/share/lxdm $fs/usr/share
42 cp -a $stuff/init.d $fs/etc
43 # Use /bin/sh
44 sed -i s'/bin\/bash/bin\/sh/' $fs/etc/lxdm/*
45 # Custom SliTaz configuration
46 # NOTE: will move to slitaz-configs when we have a nice theme
47 cp -a $stuff/lxdm.conf $fs/etc/lxdm
48 cp -a $stuff/Xsession $fs/etc/lxdm
49 cp -a $stuff/PostLogout $fs/etc/lxdm
50 chown -R root.root $fs
51 }