wok-6.x view lxsession-edit/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 | 6e8b1bcb30e2 |
children | ea7c7014b421 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxsession-edit"
4 VERSION="0.2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Configure what application start up automatically in LXDE"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.lxde.org/en/LXSession_Edit"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
12 TAGS="LXDE"
13 HOST_ARCH="i486 arm"
14 GENERIC_MENUS="no"
16 DEPENDS="gtk+ lxsession"
17 BUILD_DEPENDS="gtk+-dev"
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/lxde/files/LXSession%20Edit/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 rm -r $fs/usr/share/locale
41 sed -i 's|^Icon=.*$|Icon=session-properties|' \
42 $fs/usr/share/applications/lxsession-edit.desktop
43 }