You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
882 B

  1. #
  2. # Copyright (C) 2017 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:=tree
  9. PKG_RELEASE:=1
  10. PKG_VERSION:=2.0.2
  11. PKG_SOURCE_URL:=http://mama.indstate.edu/users/ice/tree/src
  12. PKG_HASH:=7d693a1d88d3c4e70a73e03b8dbbdc12c2945d482647494f2f5bd83a479eeeaf
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  14. PKG_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/tree
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. TITLE:=List contents of directories in a tree-like format
  20. DEPENDS:=+libc +libgcc
  21. endef
  22. MAKE_FLAGS += \
  23. CFLAGS="$(TARGET_CFLAGS)" \
  24. LDFLAGS="$(TARGET_LDFLAGS)"
  25. define Package/tree/install
  26. $(INSTALL_DIR) $(1)/usr/sbin
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tree $(1)/usr/sbin/
  28. endef
  29. $(eval $(call BuildPackage,tree))