# SliTaz package receipt. PACKAGE="htop" VERSION="3.1.2" CATEGORY="system-tools" TAGS="monitor system" SHORT_DESC="Interactive process viewer." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://htop.dev/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/htop-dev/$PACKAGE/archive/$VERSION.tar.gz" DEPENDS="libcap ncursesw" BUILD_DEPENDS="automake libcap-dev libtool linux-api-headers ncursesw-dev" HOST_ARCH="i486 arm" # Handle cross compilation case "$ARCH" in arm) CROSS_ARGS="--enable-native_affinity=no" ;; esac # What is the latest version available today? current_version() { wget -O - https://github.com/htop-dev/htop/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh && ./configure \ --enable-unicode \ $CONFIGURE_ARGS \ $CROSS_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin }