recipe 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Build recipe for rep-gtk
  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=rep-gtk
  7. version=0.90.8.3
  8. release=1
  9. tarname=${program}_${version}.tar.bz2
  10. # Remote source(s)
  11. fetch=http://download.tuxfamily.org/librep/rep-gtk/$tarname
  12. description="
  13. "
  14. homepage=http://sawfish.wikia.com/wiki/Main_Page
  15. license=GPLv2
  16. # Source documentation
  17. docs="COPYING ChangeLog NEWS README* TODO"
  18. docsdir="${docdir}/${program}-${version}"
  19. build()
  20. {
  21. set -e
  22. unpack "${tardir}/$tarname"
  23. srcdir=$TMPDIR/${program}_${version}
  24. cd "$srcdir"
  25. ./autogen.sh
  26. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  27. $configure_args \
  28. --libdir=/usr/lib${libSuffix} \
  29. --infodir=$infodir \
  30. --mandir=$mandir \
  31. --docdir=$docdir \
  32. --build="$(cc -dumpmachine)"
  33. make -j${jobs} V=1
  34. make -j${jobs} DESTDIR="$destdir" install
  35. # Compress info documents deleting index file for the package
  36. if test -d "${destdir}/$infodir"
  37. then
  38. rm -f "${destdir}/${infodir}/dir"
  39. lzip -9 "${destdir}/${infodir}"/*
  40. fi
  41. # Copy documentation
  42. mkdir -p "${destdir}${docsdir}"
  43. cp -p $docs "${destdir}${docsdir}"
  44. }