[arch-commits] Commit in python-cfn-lint/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 06:40:55 UTC 2019


    Date: Saturday, October 26, 2019 @ 06:40:55
  Author: felixonmars
Revision: 520298

archrelease: copy trunk to community-staging-any

Added:
  python-cfn-lint/repos/community-staging-any/
  python-cfn-lint/repos/community-staging-any/PKGBUILD
    (from rev 520293, python-cfn-lint/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-cfn-lint/repos/community-staging-any/PKGBUILD (from rev 520293, python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 06:40:55 UTC (rev 520298)
@@ -0,0 +1,32 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-cfn-lint
+pkgver=0.24.5
+pkgrel=2
+pkgdesc='CloudFormation Linter'
+arch=(any)
+url='https://github.com/aws-cloudformation/cfn-python-lint'
+license=('custom:MIT No Attribution')
+depends=(python python-yaml python-six python-aws-sam-translator
+         python-jsonpatch python-jsonschema python-setuptools)
+checkdepends=(python-pytest python-mock)
+source=("https://github.com/aws-cloudformation/cfn-python-lint/archive/v$pkgver/cfn-python-lint-$pkgver.tar.gz")
+sha256sums=('b88ab50a9d10c5cc0cc8c3f6334dc38e650e306caaf64beff37296ea0e2f6314')
+
+build() {
+  cd cfn-python-lint-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cfn-python-lint-$pkgver
+
+  PYTHONPATH="$PWD/build/lib" pytest -v test
+}
+
+package() {
+  cd cfn-python-lint-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list