Apache CloudStack for Arch Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
740 B

  1. # Maintainer: Pekka Helenius <pekka dot helenius at fjordtek dot com>
  2. pkgname=python-pycrypt-git
  3. _pkgname=pycrypt
  4. pkgver=0.7.2.r0.gb665333
  5. pkgrel=1
  6. pkgdesc='A fast C extension for TwoFish encryption in Python'
  7. arch=('any')
  8. url='https://pypi.org/project/pycrypt/'
  9. license=('Apache2')
  10. depends=('python')
  11. makedepends=('python-setuptools' 'gcc')
  12. provides=(python-pycrypt)
  13. conflicts=(python-pycrypt)
  14. source=(
  15. ${pkgname}::git+https://github.com/Noctem/${_pkgname}
  16. )
  17. sha256sums=('SKIP')
  18. pkgver() {
  19. cd $pkgname
  20. git describe --long --tags | sed 's/^[a-z]//;s/\([^-]*-g\)/r\1/;s/-/./g'
  21. }
  22. build() {
  23. cd $pkgname
  24. python setup.py build
  25. }
  26. package() {
  27. cd $pkgname
  28. python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
  29. }