btop: Update to 1.3.0
[feed/packages.git] / admin / btop / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=btop
4 PKG_VERSION:=1.3.0
5 PKG_RELEASE:=1
6
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
10
11 PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
12 PKG_LICENSE:=Apache-2.0
13 PKG_LICENSE_FILES:=LICENSE
14
15 PKG_BUILD_FLAGS:=no-lto
16 PKG_BUILD_PARALLEL:=1
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/btop
22 SECTION:=admin
23 CATEGORY:=Administration
24 TITLE:=A monitor of resources
25 URL:=https://github.com/aristocratos/btop
26 DEPENDS:=+libstdcpp
27 endef
28
29 define Package/btop/description
30 Resource monitor that shows usage and stats for processor, memory,
31 disks, network and processes.
32
33 C++ version and continuation of bashtop and bpytop.
34 endef
35
36 MAKE_FLAGS+= \
37 PLATFORM=Linux \
38 OPTFLAGS="$(TARGET_CXXFLAGS)" \
39 LDCXXFLAGS="$(TARGET_LDFLAGS) -pthread"
40
41 ifneq ($(CONFIG_USE_MUSL),)
42 TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
43 endif
44
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/
50
51 $(INSTALL_DIR) $(1)/etc/profile.d
52 $(CP) $(CURDIR)/files/btop.sh $(1)/etc/profile.d/
53 endef
54
55 $(eval $(call BuildPackage,btop))