Skip to content

Instantly share code, notes, and snippets.

@aruhier
Last active September 4, 2017 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aruhier/aa9c6e1bd77f3076e7d06b555d285f76 to your computer and use it in GitHub Desktop.
Save aruhier/aa9c6e1bd77f3076e7d06b555d285f76 to your computer and use it in GitHub Desktop.
Molecule PKGBUILD
recursive-include molecule/cookiecutter *
# Maintainer: Morten Linderud <morten@linderud.pw>
pkgname="molecule"
pkgver=2.0.2
pkgrel=1
pkgdesc='Molecule aids in the development and testing of Ansible roles.'
url="https://github.com/metacloud/molecule/tree/${pkgver}"
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')
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"
"MANIFEST.in")
sha256sums=('9cf3532ed4c5c262c2b4acd90da41c0c4cdf86ca15519f6dc3924b32d660ea5a'
'e1e919231f489f51b8e0de683a3ddbdf8ea9162fd16d4b1ee8df0b9c539d9ea5')
prepare() {
cat "MANIFEST.in" >> "${srcdir}/${pkgname}-${pkgver}/MANIFEST.in"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export PBR_VERSION=${pkgver}
python setup.py build
}
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