btop: Update to 1.3.2
authorTianling Shen <cnsztl@immortalwrt.org>
Tue, 20 Feb 2024 07:48:04 +0000 (15:48 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Sat, 2 Mar 2024 08:59:51 +0000 (16:59 +0800)
Synced LDFLAGS from upstream Makefile.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 187b52c95afc826213ba3e204e43ed009d8e8908)

admin/btop/Makefile

index f5efc5ee2ea4b04ef0bdfeb4cfa2a7e95d80ea41..46e86ad49d415aba1087180ae6a5c89cf5907920 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=btop
-PKG_VERSION:=1.3.0
+PKG_VERSION:=1.3.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL=https://codeload.github.com/aristocratos/btop/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=375e078ce2091969f0cd14030620bd1a94987451cf7a73859127a786006a32cf
+PKG_HASH:=331d18488b1dc7f06cfa12cff909230816a24c57790ba3e8224b117e3f0ae03e
 
 PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
 PKG_LICENSE:=Apache-2.0
@@ -33,14 +33,11 @@ define Package/btop/description
   C++ version and continuation of bashtop and bpytop.
 endef
 
+BTOP_LDFLAGS:=-pthread -DFMT_HEADER_ONLY -D_FILE_OFFSET_BITS=64
 MAKE_FLAGS+= \
        PLATFORM=Linux \
        OPTFLAGS="$(TARGET_CXXFLAGS)" \
-       LDCXXFLAGS="$(TARGET_LDFLAGS) -pthread"
-
-ifneq ($(CONFIG_USE_MUSL),)
-  TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
-endif
+       LDCXXFLAGS="$(TARGET_LDFLAGS) $(BTOP_LDFLAGS)"
 
 define Package/btop/install
        $(INSTALL_DIR) $(1)/usr/bin