[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Fri Jun 19 20:40:30 UTC 2020


    Date: Friday, June 19, 2020 @ 20:40:29
  Author: felixonmars
Revision: 647872

addpkg: python-commentjson 0.8.3-1

Added:
  python-commentjson/
  python-commentjson/repos/
  python-commentjson/trunk/
  python-commentjson/trunk/PKGBUILD

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

Added: python-commentjson/trunk/PKGBUILD
===================================================================
--- python-commentjson/trunk/PKGBUILD	                        (rev 0)
+++ python-commentjson/trunk/PKGBUILD	2020-06-19 20:40:29 UTC (rev 647872)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-commentjson
+pkgver=0.8.3
+pkgrel=1
+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=('407f6a04d1200f92a64dfa0a93cefc5bb9429b215d2623c1d9c2e1f73f192844215fc2133db8d6fd927be90c86834a3cb9c472af1b8d71e855eecda7dfd58427')
+
+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