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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 16:06:37 UTC 2019


    Date: Friday, October 25, 2019 @ 16:06:37
  Author: felixonmars
Revision: 519379

archrelease: copy trunk to community-staging-any

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

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

Copied: python-json5/repos/community-staging-any/PKGBUILD (from rev 519376, python-json5/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 16:06:37 UTC (rev 519379)
@@ -0,0 +1,26 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=python-json5
+pkgver=0.8.5
+pkgrel=3
+pkgdesc="A Python implementation of the JSON5 data format"
+arch=(any)
+url="https://pypi.org/project/json5/"
+license=(MPL GPL LGPL)
+depends=(python)
+makedepends=(python-setuptools)
+source=($pkgname-$pkgver::"https://github.com/dpranke/pyjson5/archive/v$pkgver.tar.gz")
+sha256sums=('b6fccabcdc609899b0eb69a1c8d790b722c054b4aae0fc4b95cc63fd9a72ceb6')
+
+build() {
+  cd pyjson5-$pkgver
+  
+  python setup.py build
+}
+
+package() {
+  cd pyjson5-$pkgver
+
+  python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
+  rm -r "$pkgdir"/usr/lib/*/site-packages/{README.md,tests} # Don't ship tests
+}



More information about the arch-commits mailing list