wok annotate lxsession/receipt @ rev 25060

Up fakeroot (1.29)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 07 08:21:12 2022 +0000 (2022-06-07)
parents db9d9cb3c164
children d3556b8f5c3d
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@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 {
pascal@24131 40 mkdir -p $fs/usr/share/lxsession/ui
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
pascal@24131 44 cp -a $install/usr/libexec $fs/usr
pascal@24131 45 cp -a $install/usr/share/lxsession/ui/lxsession*.ui $fs/usr/share/lxsession/ui
Hans-G?nter@23152 46 rm -f $fs/usr/bin/lxpolkit
Hans-G?nter@23152 47 # Use SliTaz Icon theme for lxsession-logout
Hans-G?nter@21394 48 cp -a $stuff/desktop.conf $fs/etc/xdg/lxsession/LXDE
pascal@24131 49 touch $fs/etc/xdg/lxsession/LXDE/autostart
Hans-G?nter@23152 50 chown -R 0.0 $fs
pankso@12415 51 }