recipe 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Build recipe for jwm
  2. #
  3. # Copyright 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
  4. #
  5. # This recipe is free software, under the terms of the Apache License 2.0
  6. program=jwm
  7. version=2.3.7
  8. release=1
  9. tarname=${program}-${version}.tar.xz
  10. # Remote source(s)
  11. fetch=https://joewing.net/projects/jwm/releases/$tarname
  12. description="
  13. JWM - Joe's Windowm Manager
  14. JWM is a light-weight window manager for the X11 Window System. JWM is written
  15. in C and uses only Xlib at a minimum. Because of its small footprint, JWM makes
  16. a good window manager for older computers and less powerful systems, such as the
  17. Raspberry Pi, though it is perfectly capable of running on modern systems.
  18. "
  19. homepage=https://joewing.net/projects/jwm/
  20. license=MIT
  21. # Source documentation
  22. docs="ABOUT-NLS CONTRIBUTING.md ChangeLog LICENSE README*"
  23. docsdir="${docdir}/${program}-${version}"
  24. build()
  25. {
  26. set -e
  27. unpack "${tardir}/$tarname"
  28. cd "$srcdir"
  29. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  30. $configure_args \
  31. --libdir=/usr/lib${libSuffix} \
  32. --infodir=$infodir \
  33. --mandir=$mandir \
  34. --docdir=$docdir \
  35. --build="$(cc -dumpmachine)"
  36. make -j${jobs} V=1
  37. make -j${jobs} DESTDIR="$destdir" install
  38. # Compress and link man pages (if needed)
  39. if test -d "${destdir}/$mandir"
  40. then
  41. (
  42. cd "${destdir}/$mandir"
  43. find . -type f -exec lzip -9 '{}' +
  44. find . -type l | while read -r file
  45. do
  46. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  47. rm -- "$file"
  48. done
  49. )
  50. fi
  51. # Copy documentation
  52. mkdir -p "${destdir}${docsdir}"
  53. cp -p $docs "${destdir}${docsdir}"
  54. }