Date: Thursday, August 27, 2020 @ 21:36:56 Author: freswa Revision: 690058
upgpkg: ansible-lint 4.3.3-1 Modified: ansible-lint/trunk/PKGBUILD ----------+ PKGBUILD | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-08-27 21:36:42 UTC (rev 690057) +++ PKGBUILD 2020-08-27 21:36:56 UTC (rev 690058) @@ -3,8 +3,8 @@ # Contributor: Sander Boom <[email protected]> pkgname=ansible-lint -pkgver=4.3.1 -pkgrel=2 +pkgver=4.3.3 +pkgrel=1 pkgdesc="Checks playbooks for practices and behaviour that could potentially be improved." arch=('any') url="https://github.com/willthames/ansible-lint" @@ -12,15 +12,22 @@ depends=('python' 'ansible' 'python-ruamel-yaml' 'python-pyaml' 'python-rich') makedepends=('git') source=(https://github.com/willthames/ansible-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) -sha256sums=('29d05d6a8e3375cb03db717fc28032f1f8395ea5b017d7a169424fa221088d67') +sha256sums=('49b0c6bfa89dede50fed269a4aae575756e73b7e563aa5f12f102f62ab96b14d') +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 -c "from setuptools import setup; setup();" build + python setup.py build } package() { cd ${pkgname}-${pkgver} - python -c "from setuptools import setup; setup();" install --root="${pkgdir}" --optimize=1 + python setup.py install --root="${pkgdir}" --optimize=1 install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} }
