wok view lxsession/receipt @ rev 25024

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 18 20:10:17 2022 +0000 (2022-05-18)
parents ee53899c6189
children ea7c7014b421
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/lxsession/ui
41 mkdir -p $fs/etc/xdg/lxsession/LXDE
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/libexec $fs/usr
45 cp -a $install/usr/share/lxsession/ui/lxsession*.ui $fs/usr/share/lxsession/ui
46 rm -f $fs/usr/bin/lxpolkit
47 # Use SliTaz Icon theme for lxsession-logout
48 cp -a $stuff/desktop.conf $fs/etc/xdg/lxsession/LXDE
49 touch $fs/etc/xdg/lxsession/LXDE/autostart
50 chown -R 0.0 $fs
51 }