recipe 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Build recipe for password-store
  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=password-store
  7. version=1.7.1
  8. release=1
  9. description="
  10. Password management should be simple and follow Unix philosophy. With
  11. pass, each password lives inside of a gpg encrypted file whose
  12. filename is the title of the website or resource that requires the
  13. password. These encrypted files may be organized into meaningful
  14. folder hierarchies, copied from computer to computer, and, in general,
  15. manipulated using standard command line file management utilities.
  16. pass makes managing these individual password files extremely
  17. easy. All passwords live in ~/.password-store, and pass provides some
  18. nice commands for adding, editing, generating, and retrieving
  19. passwords. It is a very short and simple shell script. It's capable of
  20. temporarily putting passwords on your clipboard and tracking password
  21. changes using git.
  22. You can edit the password store using ordinary unix shell commands
  23. alongside the pass command. There are no funky file formats or new
  24. paradigms to learn. There is bash completion so that you can simply
  25. hit tab to fill in names and commands, as well as completion for zsh
  26. and fish available in the completion folder.
  27. "
  28. homepage=https://www.passwordstore.org/
  29. license=GPLv2+
  30. tarname=${program}-${version}.tar.xz
  31. # Remote source(s)
  32. fetch=https://git.zx2c4.com/password-store/snapshot/$tarname
  33. # Source documentation
  34. docs="COPYING README"
  35. docsdir="${docdir}/${program}-${version}"
  36. build() {
  37. unpack "${tardir}/$tarname"
  38. cd "$srcdir"
  39. make -j${jobs}
  40. make -j${jobs} install DESTDIR="$destdir"
  41. # Compress and link man pages (if needed)
  42. if test -d "${destdir}/$mandir"
  43. then
  44. (
  45. cd "${destdir}/$mandir"
  46. find . -type f -exec lzip -9 '{}' +
  47. find . -type l | while read -r file
  48. do
  49. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  50. rm -- "$file"
  51. done
  52. )
  53. fi
  54. # Copy documentation
  55. mkdir -p "${destdir}${docsdir}"
  56. for file in $docs ; do
  57. cp -p $file "${destdir}${docsdir}"
  58. done
  59. }