recipe 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Build recipe for tree.
  2. #
  3. # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
  4. # Copyright (c) 2018 Matias Fonzo, <selk@dragora.org>.
  5. #
  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
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  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.
  17. program=tree
  18. version=1.8.0
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/tools"
  22. tarname=${program}-${version}.tgz
  23. # Remote source(s)
  24. fetch=http://mama.indstate.edu/users/ice/tree/src/"$tarname"
  25. description="
  26. Tree is a recursive directory listing command.
  27. Tree produces a depth indented listing of files, which is colorized
  28. ala dircolors if the LS_COLORS environment variable is set and output
  29. is to tty. Tree has been ported and reported to work under the
  30. following operating systems: Linux, FreeBSD, OS X, Solaris,
  31. HP/UX, Cygwin, HP Nonstop and OS/2.
  32. "
  33. homepage=http://mama.indstate.edu/users/ice/tree/
  34. license=GPLv2+
  35. # Source documentation
  36. docs="CHANGES LICENSE README TODO"
  37. docsdir="${docdir}/${program}-${version}"
  38. build()
  39. {
  40. set -e
  41. unpack "${tardir}/$tarname"
  42. cd "$srcdir"
  43. make -j${jobs} \
  44. CFLAGS="$QICFLAGS -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" \
  45. LDFLAGS="$QILDFLAGS -static" \
  46. prefix="${destdir}/usr" \
  47. MANDIR="${destdir}/${mandir}/man1" install
  48. lzip -9 "${destdir}/${mandir}/man1/tree.1"
  49. # Copy documentation
  50. mkdir -p "${destdir}${docsdir}"
  51. cp -p $docs "${destdir}${docsdir}/"
  52. }