summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4dbd0075034628d4737e4414710f8ba0f678c99 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: dncrash <dncrash at gmail dot com>

pkgname="molecule"
pkgver=2.20.2
pkgrel=3
pkgdesc='aids in the development and testing of Ansible roles.'
url='https://github.com/metacloud/molecule'
arch=('any')
license=('MIT')
makedepends=('python' 'python-setuptools' 'python-cerberus' 'python-testinfra')
depends=('ansible-lint'
         'python-anyconfig'
         'python-cerberus'
         'python-click'
         'python-click-completion'
         'python-colorama'
         'python-cookiecutter'
         'flake8'
         'python-gilt'
         'python-jinja'
         'python-pbr'
         'python-pexpect'
         'python-psutil'
         'python-pyaml'
         'python-sh'
         'python-six'
         'python-tabulate'
         'python-testinfra'
         'python-tree-format-git'
         'yamllint'
         'python-shellingham')

checkdepends=('python' 'python-tox')
optdepends=('python-docker: docker driver'
            'python-boto: EC2 driver'
            'python-vagrant: vagrant driver'
            'python-shade: openstack driver')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/metacloud/molecule/archive/${pkgver}.tar.gz")
sha256sums=('e8e466e7d84e89f2580141fdd9ce061de3f235829a4f67206e6e2013468b2833')

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

check() {
  # cd "${srcdir}/${pkgname}-${pkgver}"
  # tox -e py3
  true
  # requires tox-tags which isn't in the official packages or in AUR
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  export PBR_VERSION="${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  cp -R molecule/cookiecutter "${pkgdir}/usr/lib/python3.7/site-packages/${pkgname}"
}

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