[arch-commits] Commit in ansible-lint/repos/community-any (PKGBUILD PKGBUILD)

Frederik Schwan freswa at archlinux.org
Thu Aug 27 21:37:48 UTC 2020


    Date: Thursday, August 27, 2020 @ 21:37:48
  Author: freswa
Revision: 690059

archrelease: copy trunk to community-any

Added:
  ansible-lint/repos/community-any/PKGBUILD
    (from rev 690058, ansible-lint/trunk/PKGBUILD)
Deleted:
  ansible-lint/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 33 insertions(+), 26 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-27 21:36:56 UTC (rev 690058)
+++ PKGBUILD	2020-08-27 21:37:48 UTC (rev 690059)
@@ -1,26 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at archlinux.org>
-# Maintainer: Frederik Schwan <freswa at archlinux dot org>
-# Contributor: Sander Boom <sanderboom at gmail.com>
-
-pkgname=ansible-lint
-pkgver=4.3.1
-pkgrel=2
-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' 'python-pyaml' 'python-rich')
-makedepends=('git')
-source=(https://github.com/willthames/ansible-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('29d05d6a8e3375cb03db717fc28032f1f8395ea5b017d7a169424fa221088d67')
-
-build() {
-  cd ${pkgname}-${pkgver}
-  python -c "from setuptools import setup; setup();" build
-}
-
-package() {
-  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}
-}

Copied: ansible-lint/repos/community-any/PKGBUILD (from rev 690058, ansible-lint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-27 21:37:48 UTC (rev 690059)
@@ -0,0 +1,33 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Sander Boom <sanderboom at gmail.com>
+
+pkgname=ansible-lint
+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"
+license=('MIT')
+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=('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 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}
+}



More information about the arch-commits mailing list