wok view xrestop/receipt @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (15 months ago)
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 }