recipe 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Recipe file for pwgen.
  2. #
  3. # Maintainers: (C) 2016,2017 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=pwgen
  7. version=2.07
  8. release=1
  9. description="
  10. Make pronouceble passwords
  11. "
  12. homepage=https://github.com/jbernard/pwgen
  13. license=GPLv2
  14. tarname=${program}_${version}.orig.tar.gz
  15. # Remote source(s)
  16. fetch=http://http.debian.net/debian/pool/main/p/pwgen/$tarname
  17. # Parallel jobs for the compiler
  18. jobs=1
  19. build() {
  20. unpack "${tardir}/$tarname"
  21. cd "$srcdir"
  22. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS -static" \
  23. $configure_args \
  24. --infodir=$infodir \
  25. --mandir=$mandir \
  26. --docdir=$docdir \
  27. --build="$(cc -dumpmachine)"
  28. make -j${jobs}
  29. make -j${jobs} install DESTDIR="$destdir"
  30. # Compress and link man pages (if needed)
  31. if test -d "${destdir}/$mandir"
  32. then
  33. (
  34. cd "${destdir}/$mandir"
  35. find . -type f -exec lzip -9 '{}' +
  36. find . -type l | while read -r file
  37. do
  38. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  39. rm -- "$file"
  40. done
  41. )
  42. fi
  43. }