recipe 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Build recipe for herbstluftwm
  2. #
  3. # Copyright 2016-2018 Mateus P. Rodrigues <mprodrigues@dragora.org>.
  4. #
  5. # This recipe is free software, under the terms of the Apache License 2.0
  6. program=herbstluftwm
  7. version=0.7.0
  8. release=1
  9. description="
  10. herbstluftwm is a manual tiling window manager for X11 using Xlib and
  11. Glib. Its main features can be described with:
  12. the layout is based on splitting frames into subframes which can
  13. be split again or can be filled with windows (similar to i3/musca).
  14. tags (or workspaces or virtual desktops or …) can be added/removed
  15. at runtime. Each tag contains an own layout.
  16. exactly one tag is viewed on each monitor. The tags are monitor
  17. independent (similar to xmonad).
  18. it is configured at runtime via ipc calls from herbstclient. So
  19. the configuration file is just a script which is run on
  20. startup. (similar to wmii/ musca).
  21. "
  22. homepage=http://herbstluftwm.org/index.html
  23. license="Simplified BSD license"
  24. tarname=${program}-${version}.tar.gz
  25. # Remote source(s)
  26. fetch="http://www.herbstluftwm.org/tarballs/$tarname"
  27. # Source documentation
  28. docs="AUTHORS BUGS HACKING LICENSE MIGRATION NEWS README.md"
  29. docsdir="${docdir}/${program}-${version}"
  30. build() {
  31. unpack "${tardir}/$tarname"
  32. cd "$srcdir"
  33. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  34. $configure_args \
  35. --libdir=/usr/lib${libSuffix} \
  36. --infodir=$infodir \
  37. --mandir=$mandir \
  38. --docdir=$docdir \
  39. --build="$(cc -dumpmachine)"
  40. make -j${jobs} V=1
  41. make -j${jobs} DESTDIR="$destdir" install
  42. # Compress and link man pages (if needed)
  43. if test -d "${destdir}/$mandir"
  44. then
  45. (
  46. cd "${destdir}/$mandir"
  47. find . -type f -exec lzip -9 '{}' +
  48. find . -type l | while read -r file
  49. do
  50. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  51. rm -- "$file"
  52. done
  53. )
  54. fi
  55. # Copy documentation
  56. mkdir -p "${destdir}${docsdir}"
  57. cp -p $docs "${destdir}${docsdir}"
  58. }