# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Michał Masłowski <mtjm@mtjm.eu>
# Contributor: bill-auger <bill-auger@programmer.net>


pkgname=h-client
pkgver=0.0.0pre1
pkgrel=1
epoch=1
pkgdesc="Client for h-source servers (such as h-node.org)"
arch=(any)
url=https://h-node.org/wiki/page/en/client-for-h-node-org
license=(GPL3)
depends=(pciutils python-distribute python-gobject python-pycurl usbutils)
makedepends=()
options=(!emptydirs)
source=(https://pagure.io/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=(bd6fbe806b00f0311803b6ee979f9b28877fa8432d1884848e72c650c4128de2)


build()
{
  cd "${srcdir}"/${pkgname}-${pkgver}

  make
}

check()
{
  cd "${srcdir}"/${pkgname}-${pkgver}

  python setup.py test
}

package()
{
  cd "${srcdir}"/${pkgname}-${pkgver}

  python setup.py install --root="${pkgdir}"/ --optimize=1
  make DESTDIR="${pkgdir}" prefix=/usr install-data
}
