[arch-commits] Commit in python-hjson/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Thu Sep 17 16:34:31 UTC 2020
Date: Thursday, September 17, 2020 @ 16:34:30
Author: foxboron
Revision: 708748
upgpkg: python-hjson 3.0.2-1
Added:
python-hjson/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-09-17 16:34:30 UTC (rev 708748)
@@ -0,0 +1,31 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Batuhan Baserdem <lastname dot firstname at gmail>
+
+_name="hjson-py"
+pkgname="python-hjson"
+pkgver=3.0.2
+pkgrel=1
+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")
+md5sums=('7b345fa11d47d9df7e952f9ce20309eb')
+
+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"
+}
More information about the arch-commits
mailing list