wok-6.x annotate 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 |
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@20671 | 9 WEB_SITE="https://wiki.lxde.org/en/LXSession" |
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@24071 | 20 current_version() |
pascal@24071 | 21 { |
pascal@24071 | 22 wget -O - https://sourceforge.net/projects/lxde/files/LXSession%20%28session%20manager%29/ 2>/dev/null | \ |
pascal@24071 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24071 | 24 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24071 | 25 } |
pascal@24071 | 26 |
pankso@12415 | 27 # Rules to configure and make the package. |
pankso@12415 | 28 compile_rules() |
pankso@12415 | 29 { |
Hans-G?nter@21394 | 30 ./configure \ |
Hans-G?nter@21394 | 31 --sysconfdir=/etc \ |
pankso@12415 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@21394 | 33 make -j 1 && |
Hans-G?nter@21394 | 34 make install |
pankso@12415 | 35 } |
pankso@12415 | 36 |
pankso@12415 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12415 | 38 genpkg_rules() |
pankso@12415 | 39 { |
Hans-G?nter@21394 | 40 mkdir -p $fs/usr/share |
Hans-G?nter@21394 | 41 mkdir -p $fs/etc/xdg/lxsession/LXDE |
Hans-G?nter@21394 | 42 |
Hans-G?nter@21394 | 43 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23152 | 44 rm -f $fs/usr/bin/lxpolkit |
Hans-G?nter@23152 | 45 # Use SliTaz Icon theme for lxsession-logout |
Hans-G?nter@21394 | 46 cp -a $stuff/desktop.conf $fs/etc/xdg/lxsession/LXDE |
Hans-G?nter@23152 | 47 chown -R 0.0 $fs |
pankso@12415 | 48 } |