summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2158071b687eff1de0a53f34144e312df36c7d44 (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=3.0a4
pkgrel=1
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=('7b81fcb7816639426c619d10b2a768913f7d5152340df7fb2277ef84482551e6')

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.8/site-packages/${pkgname}"
}

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