summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04efdf2098b55ba7b4afb8a56b33078f1b62767e (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
35
36
37
38
39
40
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=python-avocado-git
pkgver=69.0+99.gb44609ba59
pkgrel=1
pkgdesc="Set of tools and libraries to help with automated testing"
arch=('x86_64')
url="http://avocado-framework.github.io/"
license=('GPL2')
source=("git+https://github.com/avocado-framework/avocado")
sha256sums=('SKIP')
depends=('python' 'libvirt-python')
makedepends=('python-setuptools')
conflicts=('python-avocado')
provides=("python-avocado=${pkgver%+*}")

pkgver() {
  cd avocado
  git describe --long --abbrev=10 | sed 's/-/+/; s/-/./'
}

build() {
  cd avocado
  python setup.py build
  make man
}

false &&
check() {
  cd avocado
  make check-full
}

package() {
  cd avocado
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build

  install -d "$pkgdir/usr/share/man/man1/"
  install -m644 man/*.1 "$pkgdir/usr/share/man/man1/"
}