recipe 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Build recipe for sawfish
  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=sawfish
  7. version=1.12.90
  8. release=1
  9. tarname=${program}_${version}.tar.bz2
  10. # Remote source(s)
  11. fetch=http://download.tuxfamily.org/sawfish/$tarname
  12. description="
  13. Sawfish is an extensible window manager using a Lisp-based scripting
  14. language. Its policy is very minimal compared to most window managers. Its aim
  15. is simply to manage windows in the most flexible and attractive manner
  16. possible. All high-level WM functions are implemented in Lisp for future
  17. extensibility or redefinition.
  18. "
  19. homepage=http://sawfish.wikia.com/wiki/Main_Page
  20. license=GPLv2
  21. # Source documentation
  22. docs="AUTHORS CONTRIBUTING COPYING* ChangeLog DOC MAINTAINERS README* TODO"
  23. docsdir="${docdir}/${program}-${version}"
  24. build()
  25. {
  26. set -e
  27. unpack "${tardir}/$tarname"
  28. srcdir=$TMPDIR/${program}_${version}
  29. cd "$srcdir"
  30. ./autogen.sh
  31. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  32. $configure_args \
  33. --libdir=/usr/lib${libSuffix} \
  34. --infodir=$infodir \
  35. --mandir=$mandir \
  36. --docdir=$docdir \
  37. --build="$(cc -dumpmachine)"
  38. make -j${jobs} V=1
  39. make -j${jobs} DESTDIR="$destdir" install
  40. # Compress info documents deleting index file for the package
  41. if test -d "${destdir}/$infodir"
  42. then
  43. rm -f "${destdir}/${infodir}/dir"
  44. lzip -9 "${destdir}/${infodir}"/*
  45. fi
  46. # Copy documentation
  47. mkdir -p "${destdir}${docsdir}"
  48. cp -p $docs "${destdir}${docsdir}"
  49. }