[arch-commits] Commit in python-hjson/repos (community-any community-any/PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Thu Sep 17 16:34:38 UTC 2020
Date: Thursday, September 17, 2020 @ 16:34:37
Author: foxboron
Revision: 708749
archrelease: copy trunk to community-any
Added:
python-hjson/repos/community-any/
python-hjson/repos/community-any/PKGBUILD
(from rev 708748, python-hjson/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-hjson/repos/community-any/PKGBUILD (from rev 708748, python-hjson/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-09-17 16:34:37 UTC (rev 708749)
@@ -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