wok-6.x view lxshortcut/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 f785404cbaa7
children 232ba43d30af
line source
1 # SliTaz package receipt.
3 PACKAGE="lxshortcut"
4 VERSION="0.1.2"
5 CATEGORY="x-window"
6 SHORT_DESC="LXDE application shortcut editor"
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://wiki.lxde.org/en/LXPanel"
11 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
12 TAGS="LXDE"
14 DEPENDS="glib glibc-base libgio expat zlib \
15 gtk+ atk cairo pango pixman libpng fontconfig freetype \
16 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender"
17 BUILD_DEPENDS="pkg-config gettext intltool gtk+-dev \
18 xorg-xproto xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev xorg-libXdmcp-dev"
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/lxde/files/LXShortcut%20%28edit%20app%20shortcut%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 ## Fix infinite loop.
31 #touch po/stamp-it
32 ./configure \
33 --prefix=/usr \
34 --sysconfdir=/etc \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/share/lxshortcut $fs/usr/share
46 }