PKGBUILD 954 B

12345678910111213141516171819202122232425262728293031
  1. # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
  2. _pkgname=pgpdump
  3. pkgname=(python-pgpdump python2-pgpdump)
  4. pkgver=1.5
  5. pkgdesc=" a Python library for parsing PGP packets"
  6. url="https://github.com/toofishes/python-pgpdump"
  7. license=('custom:BSD3')
  8. pkgrel=3
  9. arch=(any)
  10. makedepends=('python' 'python2')
  11. source=(https://files.pythonhosted.org/packages/0c/b8/b4a44411077c8f8ac356c8c3e8c95dac154b50f45348c317ebac2a9a85c0/pgpdump-1.5.tar.gz)
  12. sha256sums=('1c4700857bf7ba735b08cfe4101aa3a4f5fd839657af249c17b2697c20829668')
  13. package_python-pgpdump() {
  14. depends=('python')
  15. cd "$srcdir/$_pkgname-$pkgver"
  16. python setup.py install --root="$pkgdir/" --optimize=1
  17. install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
  18. }
  19. package_python2-pgpdump() {
  20. depends=('python2')
  21. cd "$srcdir/$_pkgname-$pkgver"
  22. python2 setup.py install --root="$pkgdir/" --optimize=1
  23. install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
  24. }