summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a9f237f8e2b244e87d9790a34be40bf92c018566 (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
26
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor:  Liu Zhe <cruise.pas@gmail.com>

pkgname=python-json-tricks
pkgver=3.17.3
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=('884eba1efe60f0bf4953a3df58b27fd7cf8ca9d5')

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
}