wok-6.x view xrestop/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents 46fc8daa3b41
children 73f36875e5a7
line source
1 # SliTaz package receipt.
3 PACKAGE="xrestop"
4 VERSION="0.4"
5 CATEGORY="utilities"
6 SHORT_DESC="X11 server resource usage monitor."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.freedesktop.org/wiki/Software/xrestop/"
11 WGET_URL="http://downloads.yoctoproject.org/releases/xrestop/$TARBALL"
13 DEPENDS="ncurses xorg-libXres libtinfo"
14 BUILD_DEPENDS="ncurses-dev xorg-libXres-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
27 ./configure --prefix=/usr
28 make
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 }