#
|
|
# Copyright (C) 2017 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=tree
|
|
PKG_RELEASE:=1
|
|
PKG_VERSION:=2.0.2
|
|
PKG_SOURCE_URL:=http://mama.indstate.edu/users/ice/tree/src
|
|
PKG_HASH:=7d693a1d88d3c4e70a73e03b8dbbdc12c2945d482647494f2f5bd83a479eeeaf
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
|
PKG_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/tree
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=List contents of directories in a tree-like format
|
|
DEPENDS:=+libc +libgcc
|
|
endef
|
|
|
|
MAKE_FLAGS += \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
define Package/tree/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tree $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,tree))
|