small-package/bpytop/Makefile

42 lines
986 B
Makefile
Raw Normal View History

2021-09-24 23:37:27 +08:00
# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=bpytop
PKG_VERSION:=1.0.67
PKG_RELEASE:=$(AUTORELEASE)
PYPI_NAME:=bpytop
PKG_HASH:=skip
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
2021-09-26 22:24:05 +08:00
include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
2021-09-24 23:37:27 +08:00
include $(INCLUDE_DIR)/package.mk
2021-09-26 22:24:05 +08:00
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
2021-09-24 23:37:27 +08:00
define Package/bpytop
SECTION:=admin
CATEGORY:=Administration
TITLE:=Python port of bashtop
URL:=https://github.com/aristocratos/bpytop
DEPENDS:=+python3-psutil +python3-setuptools
endef
define Package/bpytop/description
Resource monitor that shows usage and stats for
processor, memory, disks, network and processes.
endef
define Py3Package/bpytop/install
$(INSTALL_DIR) $(1)/usr/share
$(CP) $(PKG_BUILD_DIR)/themes $(1)/usr/share/bpytop
endef
$(eval $(call Py3Package,bpytop))
$(eval $(call BuildPackage,bpytop))
$(eval $(call BuildPackage,bpytop-src))