summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8490b16d105b24580c28abd5209dc4eb2bf6cfda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer:  Liu Zhe <cruise.pas@gmail.com>

pkgname=python-json-tricks
pkgver=3.13.4
pkgrel=1
pkgdesc="Extra features for Python's JSON"
arch=('any')
url='https://github.com/mverleg/pyjson_tricks'
license=('BSD')
depends=('python')
optdepends=('python-numpy' 'python-pandas' 'python-pytz')
makedepends=('python-setuptools')
source=("pyjson_tricks-$pkgver.tar.gz::https://github.com/mverleg/pyjson_tricks/archive/v$pkgver.tar.gz")
sha1sums=('420a22cf729b35ac3392f9c202ae0387f5a78922')

build() {
    cd "$srcdir"/pyjson_tricks-$pkgver
    python setup.py build
}

package() {
    cd "$srcdir"/pyjson_tricks-$pkgver
    python setup.py install --skip-build -O1 --root="$pkgdir"
    install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}