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
704 B

  1. # Maintainer: Pekka Helenius <pekka dot helenius at fjordtek dot com>
  2. pkgname=python-pyghmi-git
  3. _pkgname=pyghmi
  4. pkgver=1.5.33.r5.ge1e5fa98
  5. pkgrel=1
  6. pkgdesc='A Pure python IPMI library'
  7. arch=('any')
  8. url='https://pypi.org/project/pyghmi/'
  9. license=('Apache2')
  10. depends=('python')
  11. makedepends=('python-setuptools' 'python-pbr')
  12. provides=(python-pyghmi)
  13. conflicts=(python-pyghmi)
  14. source=(
  15. ${pkgname}::git+https://opendev.org/x/${_pkgname}
  16. )
  17. sha256sums=('SKIP')
  18. pkgver() {
  19. cd $pkgname
  20. git describe --long --tags | sed '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. }