Merge pull request #138 from gscholt/tree
[termux-packages] / packages / tree / build.sh
CommitLineData
df53b3c3
GS
1TERMUX_PKG_HOMEPAGE=http://mama.indstate.edu/users/ice/tree/
2TERMUX_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."
6TERMUX_PKG_DEPENDS="libandroid-support"
7TERMUX_PKG_VERSION=1.7.0
8TERMUX_PKG_MAINTAINER=$(echo "Gert Scholten <gscholt at gmail dot com>" | sed 's/\sat\s/@/' | sed 's/\sdot\s/./')
9TERMUX_PKG_SRCURL=http://mama.indstate.edu/users/ice/tree/src/tree-${TERMUX_PKG_VERSION}.tgz
10TERMUX_PKG_BUILD_IN_SRC=yes
11
12termux_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
20termux_step_make_install () {
21 make install \
22 prefix="$TERMUX_PREFIX" \
23 MANDIR="$TERMUX_PREFIX/share/man/man1"
24}