wok-6.x view htop/receipt @ rev 25506
memtest, pack: cleanup
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 09 16:28:01 2023 +0000 (22 months ago) |
parents | 370da83187ab |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="htop"
4 VERSION="3.1.2"
5 CATEGORY="system-tools"
6 TAGS="monitor system"
7 SHORT_DESC="Interactive process viewer."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://htop.dev/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/htop-dev/$PACKAGE/archive/$VERSION.tar.gz"
14 DEPENDS="libcap ncursesw"
15 BUILD_DEPENDS="automake libcap-dev libtool linux-api-headers ncursesw-dev"
17 HOST_ARCH="i486 arm"
19 # Handle cross compilation
20 case "$ARCH" in
21 arm) CROSS_ARGS="--enable-native_affinity=no" ;;
22 esac
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - https://github.com/htop-dev/htop/releases 2>/dev/null | \
28 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 ./autogen.sh &&
35 ./configure \
36 --enable-unicode \
37 $CONFIGURE_ARGS \
38 $CROSS_ARGS &&
39 make &&
40 make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cook_copy_folders bin
47 }