Skip to content

Commit

Permalink
htop: fix SRC_URL,bump to 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yh793 committed Nov 19, 2021
1 parent 1721603 commit 51f8eff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions trunk/user/htop/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
SRC_NAME = htop-3.0.2
SRC_URL = https://bintray.com/htop/source/download_file?file_path=htop-3.0.2.tar.gz
THISDIR = $(shell pwd)
SRC_NAME = htop
SRC_VERSION = 3.1.1
SRC_DIR = $(SRC_NAME)-$(SRC_VERSION)
SRC_URL = https://github.com/htop-dev/htop/archive/refs/tags/$(SRC_VERSION).tar.gz

all: download_test extract_test config_test
$(MAKE) -j$(HOST_NCPU) -C $(SRC_NAME)

download_test:
( if [ ! -f $(SRC_NAME).tar.gz ]; then \
wget -t5 --timeout=20 --no-check-certificate -O $(SRC_NAME).tar.gz $(SRC_URL); \
( if [ ! -f $(SRC_DIR).tar.gz ]; then \
wget -t5 --timeout=20 --no-check-certificate -O $(SRC_DIR).tar.gz $(SRC_URL); \
fi )

extract_test:
( if [ ! -d $(SRC_NAME) ]; then \
tar -xzf $(SRC_NAME).tar.gz; \
( if [ ! -d $(SRC_DIR) ]; then \
tar -xzf $(SRC_DIR).tar.gz; \
fi )

config_test:
Expand All @@ -23,7 +24,8 @@ config_test:
fi )

configure:
( cd $(SRC_NAME) ; \
( cd $(SRC_DIR) ; \
./autogen.sh ; \
./configure \
--prefix=/usr \
--enable-unicode \
Expand All @@ -33,10 +35,10 @@ configure:
)

clean:
if [ -f $(SRC_NAME)/Makefile ] ; then \
$(MAKE) -C $(SRC_NAME) distclean ; \
if [ -f $(SRC_DIR)/Makefile ] ; then \
$(MAKE) -C $(SRC_DIR) distclean ; \
fi ; \
rm -f config_done

romfs:
$(ROMFSINST) -p +x $(THISDIR)/$(SRC_NAME)/htop /usr/bin/htop
$(ROMFSINST) -p +x $(THISDIR)/$(SRC_DIR)/htop /usr/bin/htop
Binary file removed trunk/user/htop/htop-3.0.2.tar.gz
Binary file not shown.
Binary file added trunk/user/htop/htop-3.1.1.tar.gz
Binary file not shown.

0 comments on commit 51f8eff

Please sign in to comment.