recipe 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Recipe file for xcip.
  2. #
  3. # Maintainers: (C) 2016 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=xclip
  7. version=0.13
  8. release=1
  9. packagename=xclip
  10. packageversion=0.13
  11. description="
  12. xclip is a command line utility that is designed to run on any system
  13. with an X11 implementation. It provides an interface to X selections
  14. ("the clipboard") from the command line. It can read data from
  15. standard in or a file and place it in an X selection for pasting into
  16. other X applications. xclip can also print an X selection to standard
  17. out, which can then be redirected to a file or another program.
  18. "
  19. homepage=https://github.com/astrand/xclip
  20. license=GPLv2
  21. tarname=${version}.tar.gz
  22. # Remote source(s)
  23. fetch=https://github.com/astrand/xclip/archive/$tarname
  24. # Parallel jobs for the compiler
  25. jobs=1
  26. # Source documentation
  27. docs="COPYING INSTALL README*"
  28. docsdir="${docdir}/${program}-${version}"
  29. build() {
  30. unpack "${tardir}/$tarname"
  31. cd "$srcdir"
  32. autoreconf
  33. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  34. $configure_args
  35. make -j${jobs}
  36. make -j${jobs} install DESTDIR="$destdir"
  37. make -j${jobs} install.man DESTDIR="$destdir"
  38. # Compress and link man pages (if needed)
  39. if [ -d "${destdir}/$mandir" ] ; then
  40. (
  41. cd "${destdir}/$mandir"
  42. find . -type f -exec lzip -9 '{}' +
  43. find . -type l | while read -r file
  44. do
  45. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  46. rm -- "$file"
  47. done
  48. )
  49. fi
  50. # Copy documentation
  51. mkdir -p "${destdir}${docsdir}"
  52. for file in $docs ; do
  53. cp -p $file "${destdir}${docsdir}"
  54. done
  55. }