1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
8 PKG_SOURCE_URL
=https
://codeload.github.com
/aristocratos
/btop
/tar.gz
/v
$(PKG_VERSION
)?
9 PKG_HASH
:=375e078ce2091969f0cd14030620bd1a94987451cf7a73859127a786006a32cf
11 PKG_MAINTAINER
:=Tianling Shen
<cnsztl@immortalwrt.org
>
12 PKG_LICENSE
:=Apache-2.0
13 PKG_LICENSE_FILES
:=LICENSE
15 PKG_BUILD_FLAGS
:=no-lto
19 include $(INCLUDE_DIR
)/package.mk
23 CATEGORY
:=Administration
24 TITLE
:=A monitor of resources
25 URL
:=https
://github.com
/aristocratos
/btop
29 define Package
/btop
/description
30 Resource monitor that shows usage and stats for processor
, memory
,
31 disks
, network and processes.
33 C
++ version and continuation of bashtop and bpytop.
38 OPTFLAGS
="$(TARGET_CXXFLAGS)" \
39 LDCXXFLAGS
="$(TARGET_LDFLAGS) -pthread"
41 ifneq ($(CONFIG_USE_MUSL
),)
42 TARGET_CFLAGS
+= -D_LARGEFILE64_SOURCE
45 define Package
/btop
/install
46 $(INSTALL_DIR
) $(1)/usr
/bin
47 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/local
/bin
/btop
$(1)/usr
/bin
/
48 $(INSTALL_DIR
) $(1)/usr
/share
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/local
/share
/btop
$(1)/usr
/share
/
51 $(INSTALL_DIR
) $(1)/etc
/profile.d
52 $(CP
) $(CURDIR
)/files
/btop.sh
$(1)/etc
/profile.d
/
55 $(eval
$(call BuildPackage
,btop
))