Date: Tuesday, November 10, 2020 @ 09:02:42 Author: felixonmars Revision: 749443
archrelease: copy trunk to community-staging-any Added: ansible-lint/repos/community-staging-any/ ansible-lint/repos/community-staging-any/PKGBUILD (from rev 749442, ansible-lint/trunk/PKGBUILD) ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Copied: ansible-lint/repos/community-staging-any/PKGBUILD (from rev 749442, ansible-lint/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2020-11-10 09:02:42 UTC (rev 749443) @@ -0,0 +1,34 @@ +# Maintainer: Jelle van der Waa <je...@archlinux.org> +# Maintainer: Frederik Schwan <freswa at archlinux dot org> +# Contributor: Sander Boom <sanderb...@gmail.com> + +pkgname=ansible-lint +pkgver=4.3.7 +pkgrel=2 +pkgdesc="Checks playbooks for practices and behaviour that could potentially be improved." +arch=('any') +url="https://github.com/ansible/ansible-lint" +license=('MIT') +depends=('python' 'ansible' 'python-ruamel-yaml' 'python-pyaml' 'python-rich') +makedepends=('git') +checkdepends=('python-pytest') +source=(https://github.com/ansible/ansible-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('a20e49e3b50130d1c3baa46db0e926ebfd6616cb99dd920952cb1481e7b267b3') + +prepare() { + cd ${pkgname}-${pkgver} + # stop setuptools from using the scm version which doesn't exist in this context + sed -i "/^\[metadata\]/a version = ${pkgver}" setup.cfg + sed -i 's/use_scm_version/#use_scm_version/' setup.cfg +} + +build() { + cd ${pkgname}-${pkgver} + python setup.py build +} + +package() { + cd ${pkgname}-${pkgver} + python setup.py install --root="${pkgdir}" --optimize=1 + install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} +}