Add tree package
authorGert Scholten <gscholt@gmail.com>
Sun, 14 Feb 2016 14:04:22 +0000 (15:04 +0100)
committerGert Scholten <gscholt@gmail.com>
Sun, 14 Feb 2016 14:04:22 +0000 (15:04 +0100)
Tree is a recursive directory listing command that produces a depth indented
listing of files, which is colorized ala dircolors if the LS_COLORS environment
variable is set and output is to tty.

http://mama.indstate.edu/users/ice/tree/

packages/tree/build.sh [new file with mode: 0644]

diff --git a/packages/tree/build.sh b/packages/tree/build.sh
new file mode 100644 (file)
index 0000000..e47f5b0
--- /dev/null
@@ -0,0 +1,24 @@
+TERMUX_PKG_HOMEPAGE=http://mama.indstate.edu/users/ice/tree/
+TERMUX_PKG_DESCRIPTION="displays an indented directory tree, in color
+ Tree is a recursive directory listing command that produces a depth indented
+ listing of files, which is colorized ala dircolors if the LS_COLORS environment
+ variable is set and output is to tty."
+TERMUX_PKG_DEPENDS="libandroid-support"
+TERMUX_PKG_VERSION=1.7.0
+TERMUX_PKG_MAINTAINER=$(echo "Gert Scholten <gscholt at gmail dot com>" | sed 's/\sat\s/@/' | sed 's/\sdot\s/./')
+TERMUX_PKG_SRCURL=http://mama.indstate.edu/users/ice/tree/src/tree-${TERMUX_PKG_VERSION}.tgz
+TERMUX_PKG_BUILD_IN_SRC=yes
+
+termux_step_make () {
+       make \
+               CC="$CC" \
+               CFLAGS="$CFLAGS $CPPFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" \
+               LDFLAGS="$LDFLAGS" \
+               OBJS="tree.o unix.o html.o xml.o json.o hash.o color.o strverscmp.o"
+}
+
+termux_step_make_install () {
+       make install \
+               prefix="$TERMUX_PREFIX" \
+               MANDIR="$TERMUX_PREFIX/share/man/man1"
+}