From 3e4cf8b4dd18e3f3992ac76594c6c3ea6d1492a5 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Wed, 2 Sep 2020 22:50:17 +0300 Subject: [PATCH] htop-legacy: update source url + specify "replaces" field --- packages/htop-legacy/build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/htop-legacy/build.sh b/packages/htop-legacy/build.sh index 40ec24d8a..32dc0bd6e 100644 --- a/packages/htop-legacy/build.sh +++ b/packages/htop-legacy/build.sh @@ -2,15 +2,21 @@ TERMUX_PKG_HOMEPAGE=https://hisham.hm/htop/ TERMUX_PKG_DESCRIPTION="Interactive process viewer for Linux" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=1:2.2.0 -TERMUX_PKG_SRCURL=http://hisham.hm/htop/releases/${TERMUX_PKG_VERSION}/htop-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=d9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57 +TERMUX_PKG_SRCURL=https://github.com/htop-dev/htop/archive/${TERMUX_PKG_VERSION:2}.tar.gz +TERMUX_PKG_SHA256=fb23275090ee5fb19266384c39c69519c8b3844b8f6444730094949c621197c0 # htop checks setlocale() return value for UTF-8 support, so use libandroid-support. TERMUX_PKG_DEPENDS="ncurses, libandroid-support" TERMUX_PKG_CONFLICTS="htop" +TERMUX_PKG_REPLACES="htop" TERMUX_PKG_PROVIDES="htop" TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_RM_AFTER_INSTALL="share/applications share/pixmaps" + TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" ac_cv_lib_ncursesw6_addnwstr=yes LIBS=-landroid-support " + +termux_step_pre_configure() { + ./autogen.sh +}