[arch-commits] Commit in ansible-lint/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sat Jan 4 11:47:56 UTC 2020
Date: Saturday, January 4, 2020 @ 11:47:55
Author: jelle
Revision: 547874
upgpkg: ansible-lint 4.2.0-1
Update with workaround due to setup.py being removed.
Modified:
ansible-lint/trunk/PKGBUILD
----------+
PKGBUILD | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-04 11:31:57 UTC (rev 547873)
+++ PKGBUILD 2020-01-04 11:47:55 UTC (rev 547874)
@@ -2,25 +2,24 @@
# Contributor: Sander Boom <sanderboom at gmail.com>
pkgname=ansible-lint
-pkgver=4.1.0
-pkgrel=2
+pkgver=4.2.0
+pkgrel=1
pkgdesc="Checks playbooks for practices and behaviour that could potentially be improved."
arch=('any')
url="https://github.com/willthames/ansible-lint"
license=('MIT')
depends=('python' 'ansible' 'python-ruamel-yaml')
-makedepends=('python-distribute')
checkdepends=('python-nose')
-source=("https://github.com/willthames/ansible-lint/archive/v${pkgver}.tar.gz")
-sha256sums=('83cffafaa59d724af2ba9e1b143d8a69035b4e58ceaf5ed0fdc3b845aff881a0')
+source=(${pkgname}-${pkgver}::https://github.com/willthames/ansible-lint/archive/v${pkgver}.tar.gz)
+sha256sums=('b1fbb2f71ab9f9f5ffac39a3f5c77af67a09d838fac4c78b0be824bf9171eb37')
build() {
- cd "${pkgname}-${pkgver}"
- python3 setup.py build
+ cd "${pkgname}-${pkgver}"
+ python -c "from setuptools import setup; setup();" build
}
package() {
- cd "${pkgname}-${pkgver}"
- python3 setup.py install --root="$pkgdir" --optimize=1
- install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ cd "${pkgname}-${pkgver}"
+ python -c "from setuptools import setup; setup();" install --root="$pkgdir" --optimize=1
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
More information about the arch-commits
mailing list