Date: Sunday, August 5, 2018 @ 14:24:27
  Author: felixonmars
Revision: 368382

archrelease: copy trunk to community-testing-any

Added:
  python-json-config/repos/community-testing-any/
  python-json-config/repos/community-testing-any/PKGBUILD
    (from rev 368381, python-json-config/trunk/PKGBUILD)

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

Copied: python-json-config/repos/community-testing-any/PKGBUILD (from rev 
368381, python-json-config/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2018-08-05 14:24:27 UTC (rev 368382)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-json-config
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="A convenience utility for working with JSON config files with file 
syncing"
+url="https://github.com/bionikspoon/json_config";
+license=('MIT')
+arch=('any')
+depends=('python-future')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-mock' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/bionikspoon/json_config/archive/$pkgver.tar.gz";)
+sha512sums=('54ad91e3ad8ba73dfb9e5180f7211646d4d24029688874d6db0de5a583515fa6a09b06156d2e4375159327bafaee622e68686a245af25dbebff5348e76a5562b')
+
+build() {
+  cd json_config-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd json_config-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd json_config-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to