recipe 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Recipe file for stumpwm.
  2. #
  3. # Maintainers: (C) 2017 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=stumpwm
  7. version=1.0.0
  8. release=1
  9. description="
  10. StumpWM is a tiling, keyboard driven X11 Window Manager written entirely in Common Lisp.
  11. "
  12. homepage=https://stumpwm.github.io/index.html
  13. license=GPLv2
  14. tarname=${version}.tar.gz
  15. # Remote source(s)
  16. fetch=https://github.com/stumpwm/stumpwm/archive/$tarname
  17. # Parallel jobs for the compiler
  18. jobs=1
  19. pkgname=stumpwm
  20. # Source documentation
  21. docs="AUTHORS COPYING HACKING NEWS README.md"
  22. docsdir="${docdir}/${program}-${version}"
  23. build() {
  24. unpack "${tardir}/$tarname"
  25. cd "$srcdir"
  26. ./autogen.sh
  27. ./configure $configure_args \
  28. --with-lisp=clisp \
  29. --build=${ARCH}-dragora-linux-gnu
  30. make -j${jobs} install DESTDIR="$destdir"
  31. # Compress info documents deleting index file for the package
  32. if test -d "${destdir}/$infodir"
  33. then
  34. rm -f "${destdir}/${infodir}/dir"
  35. lzip -9 "${destdir}/${infodir}"/*
  36. fi
  37. # Compress and link man pages (if needed)
  38. if [ -d "${destdir}/$mandir" ] ; then
  39. (
  40. cd "${destdir}/$mandir"
  41. find . -type f -exec lzip -9 '{}' +
  42. find . -type l | while read -r file
  43. do
  44. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  45. rm -- "$file"
  46. done
  47. )
  48. fi
  49. # Copy documentation
  50. mkdir -p "${destdir}${docsdir}"
  51. for file in $docs ; do
  52. cp -p $file "${destdir}${docsdir}"
  53. done
  54. }