Add tree package
[termux-packages] / packages / tree / build.sh
1 TERMUX_PKG_HOMEPAGE=http://mama.indstate.edu/users/ice/tree/
2 TERMUX_PKG_DESCRIPTION="displays an indented directory tree, in color
3 Tree is a recursive directory listing command that produces a depth indented
4 listing of files, which is colorized ala dircolors if the LS_COLORS environment
5 variable is set and output is to tty."
6 TERMUX_PKG_DEPENDS="libandroid-support"
7 TERMUX_PKG_VERSION=1.7.0
8 TERMUX_PKG_MAINTAINER=$(echo "Gert Scholten <gscholt at gmail dot com>" | sed 's/\sat\s/@/' | sed 's/\sdot\s/./')
9 TERMUX_PKG_SRCURL=http://mama.indstate.edu/users/ice/tree/src/tree-${TERMUX_PKG_VERSION}.tgz
10 TERMUX_PKG_BUILD_IN_SRC=yes
11
12 termux_step_make () {
13 make \
14 CC="$CC" \
15 CFLAGS="$CFLAGS $CPPFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" \
16 LDFLAGS="$LDFLAGS" \
17 OBJS="tree.o unix.o html.o xml.o json.o hash.o color.o strverscmp.o"
18 }
19
20 termux_step_make_install () {
21 make install \
22 prefix="$TERMUX_PREFIX" \
23 MANDIR="$TERMUX_PREFIX/share/man/man1"
24 }