upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-hjson / trunk / PKGBUILD
blobfcc283a94cfcfcee621fd613a17d3464eb3ffe78
1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
2 # Contributor:  Batuhan Baserdem <lastname dot firstname at gmail>
4 _name="hjson-py"
5 pkgname="python-hjson"
6 pkgver=3.0.2
7 pkgrel=6
8 pkgdesc="JSON for Humans, allows comments and is less error prone."
9 arch=(any)
10 url="https://github.com/laktak/hjson-py"
11 license=('MIT')
12 makedepends=('python-setuptools')
13 depends=('python')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/hjson/hjson-py/archive/v${pkgver}.tar.gz")
15 sha256sums=('1c16084568a6328ba404703aad6db8ddf7e3b6afec9e141b375a40a61a209c30')
17 build() {
18   cd "${_name}-${pkgver}"
19   python setup.py build
22 check(){
23   cd "${_name}-${pkgver}"
24   PYTHONPATH="$PYTHONPATH:${PWD}" python hjson/tests/__init__.py
27 package() {
28   cd "${_name}-${pkgver}"
29   python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
30   install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"