recipe 1.2 KB

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