Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=htop
  9. PKG_VERSION:=3.2.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/htop-dev/htop/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=3829c742a835a0426db41bb039d1b976420c21ec65e93b35cd9bfd2d57f44ac8
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:htop:htop
  17. PKG_FIXUP:=autoreconf
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/htop
  22. SECTION:=admin
  23. CATEGORY:=Administration
  24. TITLE:=Interactive processes viewer
  25. DEPENDS:=+libncurses
  26. URL:=https://hisham.hm/htop/
  27. MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
  28. endef
  29. define Package/htop/description
  30. Htop is an ncursed-based process viewer similar to top, but
  31. it allows to scroll the list vertically and horizontally to
  32. see all processes and their full command lines.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --disable-sensors \
  36. --enable-affinity \
  37. --disable-capabilities \
  38. --disable-delayacct \
  39. --disable-unicode \
  40. --disable-unwind \
  41. --disable-hwloc
  42. CONFIGURE_VARS += \
  43. ac_cv_file__proc_stat=yes \
  44. ac_cv_file__proc_meminfo=yes
  45. define Package/htop/install
  46. $(INSTALL_DIR) $(1)/usr/bin
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  48. endef
  49. $(eval $(call BuildPackage,htop))