recipe 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Build recipe for pinentry
  2. #
  3. # Copyright 2016,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=pinentry
  7. version=0.9.7
  8. release=1
  9. description="
  10. pinentry is a small collection of dialog programs that allow GnuPG to
  11. read passphrases and PIN numbers in a secure manner. There are
  12. versions for the common GTK and Qt toolkits as well as for the text
  13. terminal (Curses).
  14. "
  15. homepage=https://www.gnupg.org/related_software/pinentry/index.en.html
  16. license=GPLv2
  17. tarname=${program}-${version}.tar.bz2
  18. # Remote source(s)
  19. fetch=https://www.gnupg.org/ftp/gcrypt/pinentry/$tarname
  20. # Source documentation
  21. docs="AUTHORS COPYING NEWS README* THANKS TODO VERSION"
  22. docsdir="${docdir}/${program}-${version}"
  23. build() {
  24. unpack "${tardir}/$tarname"
  25. cd "$srcdir"
  26. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  27. $configure_args \
  28. --infodir=$infodir \
  29. --docdir=$docdir \
  30. --build="$(cc -dumpmachine)" \
  31. --enable-pinentry-curses \
  32. --disable-pinentry-gtk2 \
  33. --disable-pinentry-qt \
  34. --disable-pinentry-gnome3
  35. make -j${jobs}
  36. make -j${jobs} install DESTDIR="$destdir"
  37. # Compress info documents deleting index file for the package
  38. if test -d "${destdir}/$infodir"
  39. then
  40. rm -f "${destdir}/${infodir}/dir"
  41. lzip -9 "${destdir}/${infodir}"/*
  42. fi
  43. # Copy documentation
  44. mkdir -p "${destdir}${docsdir}"
  45. for file in $docs ; do
  46. cp -p $file "${destdir}${docsdir}"
  47. done
  48. }