summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93432f4a045f81a932dcbd37993fa8ce9c55815d (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
63
64
# Maintainer: dncrash <dncrash at gmail dot com>

pkgname="molecule"
pkgver=3.0a5
pkgrel=1
pkgdesc='aids in the development and testing of Ansible roles.'
url='https://github.com/ansible/molecule'
arch=('any')
license=('MIT')
makedepends=('python' 'python-setuptools' 'python-cerberus' 'python-testinfra')
depends=('ansible'
         'ansible-lint'
         'python-cerberus'
         'python-click'
         'python-click-completion'
         'python-colorama'
         'python-cookiecutter'
         'flake8'
         'python-gilt'
         'python-jinja'
         'python-paramiko'
         'python-pathlib2'
         'python-pexpect'
         'python-pluggy'
         'python-pre-commmit'
         'python-pyaml'
         'python-sh'
         'python-six'
         'python-subprocess2'
         'python-tabulate'
         'python-testinfra'
         'python-tree-format-git'
         'yamllint')

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/ansible/molecule/archive/${pkgver}.tar.gz")
sha256sums=('a78050a00f51d806215e5cc5420dcb5c1403340fd25155b42f3b26d7cd10d97d')

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: