[arch-commits] Commit in python-json-logger/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:47:39 UTC 2020


    Date: Monday, November 9, 2020 @ 15:47:39
  Author: felixonmars
Revision: 747144

archrelease: copy trunk to community-staging-any

Added:
  python-json-logger/repos/community-staging-any/
  python-json-logger/repos/community-staging-any/PKGBUILD
    (from rev 747143, python-json-logger/trunk/PKGBUILD)

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

Copied: python-json-logger/repos/community-staging-any/PKGBUILD (from rev 747143, python-json-logger/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:47:39 UTC (rev 747144)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-json-logger
+pkgver=0.1.11
+pkgrel=4
+pkgdesc='A python library adding a json log formatter'
+arch=('any')
+license=('BSD')
+url='https://github.com/madzak/python-json-logger'
+depends=('python-setuptools')
+source=("$pkgname-v$pkgver.tar.gz::https://github.com/madzak/python-json-logger/archive/v$pkgver.tar.gz")
+sha512sums=('de0e66fd99d5b763c1fe2574e0e2cfc8c1053b88adbbc9b7bf8a48027c1c14c141c1389a303f9dcc43a18671085abaef8650150ecd4a7c281a2a966de5f0f136')
+
+build() {
+  cd "$srcdir"/python-json-logger-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-json-logger-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd python-json-logger-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list