summaryrefslogtreecommitdiff
path: root/python-hpilo/PKGBUILD
blob: f4c03bf33876c14d82c6378b3828940302400ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=python-hpilo
pkgver=4.4.2
pkgrel=2
pkgdesc='Accessing the HP iLO XML interface from python'
arch=('any')
url='http://seveas.github.io/python-hpilo/'
license=('GPL3')
depends=(
  'python>=3.9'
  'python<3.10'
)
makedepends=(
  'python-setuptools'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/seveas/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('404bdd71e89d89e08e125950b3c12621f8bdd5969d6695c8c2125272d7b661ae722a9995e0115fc55be7dc1b65e3f1abe417b530da6df81b5245fd77e73ce37f')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1
  install -D COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}