summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a99143ecca97c390cab0cf2bd949bebb1976bee (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
29
30
31
32
33
34
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: gardar <aur@gardar.net>
# Contributor: Morten Linderud <morten@linderud.pw>  

pkgbase="python-testinfra"
pkgname="python-testinfra"
_pkgname='testinfra'
pkgver=5.0.0
pkgrel=1
pkgdesc='Testinfra test your infrastructures'
url='https://github.com/philpep/testinfra'
arch=('any')
license=('Apache')
depends=('python-six')
makedepends=('git' 'python' 'python-setuptools' 'python-pbr' 'python-sphinx')
source=("git+https://github.com/philpep/testinfra.git#tag=$pkgver")
sha256sums=('SKIP')


build() {
    cd "${_pkgname}"
    python setup.py build
    make -C doc html man
}

package() {
    cd "${_pkgname}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
    install -d "${pkgdir}/usr/share/doc/${pkgname}"
    cp -r doc/build/html/* "${pkgdir}/usr/share/doc/${pkgname}"
    install -Dm 644 doc/build/man/testinfra.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}

# vim:set ft=sh ts=2 sw=2 et: