Date: Friday, April 7, 2023 @ 03:53:36
  Author: felixonmars
Revision: 1440374

archrelease: copy trunk to community-staging-any

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

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

Copied: python-hjson/repos/community-staging-any/PKGBUILD (from rev 1440373, 
python-hjson/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 03:53:36 UTC (rev 1440374)
@@ -0,0 +1,31 @@
+# Maintainer: Morten Linderud <[email protected]>
+# Contributor: Batuhan Baserdem <lastname dot firstname at gmail>
+
+_name="hjson-py"
+pkgname="python-hjson"
+pkgver=3.0.2
+pkgrel=6
+pkgdesc="JSON for Humans, allows comments and is less error prone."
+arch=(any)
+url="https://github.com/laktak/hjson-py";
+license=('MIT')
+makedepends=('python-setuptools')
+depends=('python')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hjson/hjson-py/archive/v${pkgver}.tar.gz";)
+sha256sums=('1c16084568a6328ba404703aad6db8ddf7e3b6afec9e141b375a40a61a209c30')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check(){
+  cd "${_name}-${pkgver}"
+  PYTHONPATH="$PYTHONPATH:${PWD}" python hjson/tests/__init__.py
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+  install -Dm0644 LICENSE.txt 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}

Reply via email to