wok annotate htop/receipt @ rev 24876

magicpoint: ar syntax adaptation)
author Hans-G?nter Theisgen
date Thu Mar 31 11:00:43 2022 +0100 (2022-03-31)
parents 370da83187ab
children 20ad21d5532c
rev   line source
pankso@7 1 # SliTaz package receipt.
pankso@7 2
pankso@7 3 PACKAGE="htop"
Hans-G?nter@24650 4 VERSION="3.1.2"
pankso@202 5 CATEGORY="system-tools"
Hans-G?nter@24650 6 TAGS="monitor system"
pankso@7 7 SHORT_DESC="Interactive process viewer."
pankso@7 8 MAINTAINER="pankso@slitaz.org"
pascal@15002 9 LICENSE="GPL2"
Hans-G?nter@24650 10 WEB_SITE="https://htop.dev/"
pankso@7 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@24650 12 WGET_URL="https://github.com/htop-dev/$PACKAGE/archive/$VERSION.tar.gz"
Hans-G?nter@24650 13
Hans-G?nter@24650 14 DEPENDS="libcap ncursesw"
Hans-G?nter@24650 15 BUILD_DEPENDS="automake libcap-dev libtool linux-api-headers ncursesw-dev"
Hans-G?nter@24650 16
pankso@12923 17 HOST_ARCH="i486 arm"
pankso@12923 18
Hans-G?nter@24650 19 # Handle cross compilation
pankso@12923 20 case "$ARCH" in
pankso@12923 21 arm) CROSS_ARGS="--enable-native_affinity=no" ;;
pankso@12923 22 esac
pankso@7 23
pascal@24361 24 # What is the latest version available today?
pascal@24361 25 current_version()
pascal@24361 26 {
pascal@24361 27 wget -O - https://github.com/htop-dev/htop/releases 2>/dev/null | \
pascal@24361 28 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24361 29 }
pascal@24361 30
pankso@7 31 # Rules to configure and make the package.
pankso@7 32 compile_rules()
pankso@7 33 {
Hans-G?nter@24650 34 ./autogen.sh &&
Hans-G?nter@24650 35 ./configure \
Hans-G?nter@24650 36 --enable-unicode \
Hans-G?nter@24650 37 $CONFIGURE_ARGS \
Hans-G?nter@24650 38 $CROSS_ARGS &&
Hans-G?nter@24650 39 make &&
Hans-G?nter@24650 40 make install
pankso@7 41 }
pankso@7 42
pankso@7 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@7 44 genpkg_rules()
pankso@7 45 {
Hans-G?nter@24650 46 cook_copy_folders bin
pankso@7 47 }