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

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 05:14:18 UTC 2020


    Date: Tuesday, November 10, 2020 @ 05:14:17
  Author: foutrelis
Revision: 749378

archrelease: copy trunk to community-staging-any

Added:
  python-commentjson/repos/community-staging-any/
  python-commentjson/repos/community-staging-any/PKGBUILD
    (from rev 749377, python-commentjson/trunk/PKGBUILD)

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

Copied: python-commentjson/repos/community-staging-any/PKGBUILD (from rev 749377, python-commentjson/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 05:14:17 UTC (rev 749378)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-commentjson
+pkgver=0.9.0
+pkgrel=2
+pkgdesc="Add Python and JavaScript style comments in your JSON files"
+url="https://github.com/vaidik/commentjson"
+license=('MIT')
+arch=('any')
+depends=('python-lark-parser')
+makedepends=('python-setuptools')
+checkdepends=('python-tests')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/vaidik/commentjson/archive/v$pkgver.tar.gz")
+sha512sums=('cd3d28adecbc445ed3faed7847c65a23829f408cf8aa3fa85544a0f0cf9fa5544b8aff560725cf51921f249123daf9ce9953069e99ca64a312bb4bff652512fe')
+
+prepare() {
+  cd commentjson-$pkgver
+  sed -i 's/,<0/,<1/' setup.py
+}
+
+build() {
+  cd commentjson-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd commentjson-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd commentjson-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list