Skip to content

Instantly share code, notes, and snippets.

@TheRojam
Created March 22, 2018 00:47
Show Gist options
  • Save TheRojam/7a856f5166118623cf42d9f2ef6d9202 to your computer and use it in GitHub Desktop.
Save TheRojam/7a856f5166118623cf42d9f2ef6d9202 to your computer and use it in GitHub Desktop.
# Maintainer: Morten Linderud <morten@linderud.pw>
pkgname="molecule"
pkgver=22.10.1
# pkgrel=2 TO CHANGEE
_commit=303337927095ab09957fca03ad145f176d0acb0c
pkgdesc='aids in the development and testing of Ansible roles.'
url='https://github.com/metacloud/molecule/tree/2.10.1'
arch=('any')
license=('MIT')
makedepends=('python' 'python-setuptools')
depends=('ansible-lint' 'python-ansible' 'python-colorama' 'flake8'
'python-jinja' 'python-marshmallow' 'python-gilt' 'python'
'python-tabulate' 'python-pbr' 'python-pexpect' 'python-cookiecutter'
'python-yaml' 'python-sh' 'python-click' 'python-click-completion'
'python-tree-format-git' 'yamllint' 'python-anyconfig')
checkdepends=('python' 'python-tox')
optdepends=('python-docker: docker driver'
'python-boto: EC2 driver'
'python-vagrant: vagrant driver'
'python-shade: openstack driver')
source=("${pkgname}-${pkgver}::git://github.com/metacloud/molecule.git#commit=${_commit}")
sha256sums=('SKIP')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export PBR_VERSION="${pkgver}"
python setup.py build
}
check(){
cd "${srcdir}/${pkgname}-${pkgver}"
tox -e py2,py3
}
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"
}
# vim:set ft=sh ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment