summaryrefslogtreecommitdiff
path: root/python-hpilo/PKGBUILD
blob: 49cfc0dcce9ce996a39ae3ce4cfc59918ffc7f81 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=python-hpilo
pkgver=4.4.1
pkgrel=1
pkgdesc='Accessing the HP iLO XML interface from python'
arch=('any')
url='http://seveas.github.io/python-hpilo/'
license=('GPL3')
depends=(
  'python>=3.8'
  'python<3.9'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/seveas/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('6f0bed77c9f1d68a6efd1fe1a6e78fd1c91b742c1b954a09b83c9afac2c793caa18e6c484175be3e1c1ec0449f77253bf3beea18cd454cfaebbeef63f5515b54')

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"
}