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