1 # Build recipe for tree.
3 # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
4 # Copyright (c) 2018 Matias Fonzo, <selk@dragora.org>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/tools"
25 tarname=${program}-${version}.tgz
28 fetch=http://mama.indstate.edu/users/ice/tree/src/"$tarname"
31 Tree is a recursive directory listing command.
33 Tree produces a depth indented listing of files, which is colorized
34 ala dircolors if the LS_COLORS environment variable is set and output
35 is to tty. Tree has been ported and reported to work under the
36 following operating systems: Linux, FreeBSD, OS X, Solaris,
37 HP/UX, Cygwin, HP Nonstop and OS/2.
40 homepage=http://mama.indstate.edu/users/ice/tree/
43 # Source documentation
44 docs="CHANGES LICENSE README TODO"
45 docsdir="${docdir}/${program}-${version}"
51 unpack "${tardir}/$tarname"
56 CFLAGS="$QICFLAGS -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" \
57 LDFLAGS="$QILDFLAGS -static" \
58 prefix="${destdir}/usr" \
59 MANDIR="${destdir}/${mandir}/man1" install
61 lzip -9 "${destdir}/${mandir}/man1/tree.1"
64 mkdir -p "${destdir}${docsdir}"
65 cp -p $docs "${destdir}${docsdir}/"