wok-6.x view etherape/receipt @ rev 24385

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 11:38:23 2022 +0000 (2022-02-07)
parents e5c6cfe4174a
children 69a08b0214f3
line source
1 # SliTaz package receipt.
3 PACKAGE="etherape"
4 VERSION="0.9.18"
5 CATEGORY="network"
6 TAGS="ip monitoring network tcp vlan wlan"
7 SHORT_DESC="A graphical network monitor and visualization tool."
8 MAINTAINER="hackdorte@sapo.pt"
9 LICENSE="GPL2"
10 WEB_SITE="https://etherape.sourceforge.io"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="gtk+3 libglade libgnome libpcap libgnomeui libltdl
16 libcrypto libxslt libgnome-keyring util-linux-uuid"
17 BUILD_DEPENDS="glib-dev glibc-dev gnome-doc-utils-dev goocanvas
18 goocanvas-dev gtk+3-dev itstool libcrypto-dev libglade-dev
19 libgnome-dev libgnomeui-dev libpcap-dev libtool libxslt-dev
20 ossp-uuid-dev"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://sourceforge.net/projects/etherape/files/etherape/ 2>/dev/null | \
26 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
27 sed '/scope="row/!d;s|.*/etherape/||;s|/.*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --prefix=/usr \
35 --libdir=/usr/lib \
36 --sysconfdir=/etc \
37 --localstatedir=/var/state/$PACKAGE-$VERSION \
38 --mandir=/usr/share/man \
39 --docdir=/usr/share/doc/$PACKAGE-$VERSION \
40 --build=$ARCH-slitaz-linux \
41 --disable-scrollkeeper
42 make &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/bin
50 mkdir -p $fs/usr/share
52 cp -a $install/usr/bin/* $fs/usr/bin
53 cp -a $install/usr/share/* $fs/usr/share
54 }
56 post_install()
57 {
58 # The SliTaz use Tazbox.
59 sed -i 's/^Exec=.*/Exec=tazbox su dbus-launch etherape/' \
60 $1/usr/share/applications/etherape.desktop
61 }