wok annotate lxsession/receipt @ rev 25606
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 19 11:40:29 2023 +0000 (16 months ago) |
parents | ea7c7014b421 |
children |
rev | line source |
---|---|
pankso@12415 | 1 # SliTaz package receipt. |
pankso@12415 | 2 |
pankso@12415 | 3 PACKAGE="lxsession" |
Hans-G?nter@23152 | 4 VERSION="0.5.5" |
pankso@12415 | 5 CATEGORY="x-window" |
al@17999 | 6 SHORT_DESC="LXDE X session manager." |
pankso@12415 | 7 MAINTAINER="pankso@slitaz.org" |
al@14907 | 8 LICENSE="GPL2" |
pascal@25060 | 9 WEB_SITE="https://www.lxde.org/" |
Hans-G?nter@21394 | 10 |
Hans-G?nter@21395 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@16261 | 12 WGET_URL="$SF_MIRROR/lxde/$TARBALL" |
Hans-G?nter@21394 | 13 |
Hans-G?nter@21394 | 14 DEPENDS="dbus gtk+" |
Hans-G?nter@21394 | 15 BUILD_DEPENDS="dbus-dev gtk+-dev libunique-dev polkit-dev" |
pascal@21823 | 16 SUGGESTED="lxsession-lxpolkit" |
Hans-G?nter@21394 | 17 |
pankso@16261 | 18 HOST_ARCH="i486 arm" |
pankso@12415 | 19 |
pascal@25606 | 20 # What is the latest version available today? |
pascal@24071 | 21 current_version() |
pascal@24071 | 22 { |
pascal@24071 | 23 wget -O - https://sourceforge.net/projects/lxde/files/LXSession%20%28session%20manager%29/ 2>/dev/null | \ |
pascal@25606 | 24 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24071 | 25 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24071 | 26 } |
pascal@24071 | 27 |
pankso@12415 | 28 # Rules to configure and make the package. |
pankso@12415 | 29 compile_rules() |
pankso@12415 | 30 { |
Hans-G?nter@21394 | 31 ./configure \ |
Hans-G?nter@21394 | 32 --sysconfdir=/etc \ |
pankso@12415 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@21394 | 34 make -j 1 && |
Hans-G?nter@21394 | 35 make install |
pankso@12415 | 36 } |
pankso@12415 | 37 |
pankso@12415 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12415 | 39 genpkg_rules() |
pankso@12415 | 40 { |
pascal@24131 | 41 mkdir -p $fs/usr/share/lxsession/ui |
Hans-G?nter@21394 | 42 mkdir -p $fs/etc/xdg/lxsession/LXDE |
Hans-G?nter@21394 | 43 |
Hans-G?nter@21394 | 44 cp -a $install/usr/bin $fs/usr |
pascal@24131 | 45 cp -a $install/usr/libexec $fs/usr |
pascal@24131 | 46 cp -a $install/usr/share/lxsession/ui/lxsession*.ui $fs/usr/share/lxsession/ui |
Hans-G?nter@23152 | 47 rm -f $fs/usr/bin/lxpolkit |
Hans-G?nter@23152 | 48 # Use SliTaz Icon theme for lxsession-logout |
Hans-G?nter@21394 | 49 cp -a $stuff/desktop.conf $fs/etc/xdg/lxsession/LXDE |
pascal@24131 | 50 touch $fs/etc/xdg/lxsession/LXDE/autostart |
Hans-G?nter@23152 | 51 chown -R 0.0 $fs |
pankso@12415 | 52 } |