wok-6.x view lxsession/receipt @ rev 24071
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 10:35:01 2021 +0000 (2021-07-07) |
parents | 101ece56578c |
children | db9d9cb3c164 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxsession"
4 VERSION="0.5.5"
5 CATEGORY="x-window"
6 SHORT_DESC="LXDE X session manager."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.lxde.org/en/LXSession"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
14 DEPENDS="dbus gtk+"
15 BUILD_DEPENDS="dbus-dev gtk+-dev libunique-dev polkit-dev"
16 SUGGESTED="lxsession-lxpolkit"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/lxde/files/LXSession%20%28session%20manager%29/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 mkdir -p $fs/etc/xdg/lxsession/LXDE
43 cp -a $install/usr/bin $fs/usr
44 rm -f $fs/usr/bin/lxpolkit
45 # Use SliTaz Icon theme for lxsession-logout
46 cp -a $stuff/desktop.conf $fs/etc/xdg/lxsession/LXDE
47 chown -R 0.0 $fs
48 }