1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Guillaume Horel <guillaume.horel@gmail.com>
3 pkgname=('python-zstandard')
7 pkgdesc="Python bindings to the Zstandard (zstd) compression library"
8 url="https://github.com/indygreg/python-zstandard"
10 makedepends=('python-setuptools')
11 checkdepends=('python-hypothesis')
12 optdepends=('python-cffi')
15 source=("$pkgname-$pkgver.tar.gz::https://github.com/indygreg/python-zstandard/archive/$pkgver.tar.gz")
16 sha256sums=('15adc6bfa629d48b0bb658e9eae94c484adb66a28738fa780478eebeb41599a5')
19 cd "${srcdir}/${pkgname}-${pkgver}"
20 python setup.py build_ext
24 cd "${srcdir}/${pkgname}-${pkgver}"
25 python setup.py build_ext --inplace
30 cd "${srcdir}/${pkgname}-${pkgver}"
31 python setup.py install --root="${pkgdir}" --optimize=1
32 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"