upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-zstandard / trunk / PKGBUILD
blob567e9f433803ef69d190bf2f35bd3af182e737f1
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Guillaume Horel <guillaume.horel@gmail.com>
3 pkgname=('python-zstandard')
4 _pkgname='zstandard'
5 pkgver=0.21.0
6 pkgrel=1
7 pkgdesc="Python bindings to the Zstandard (zstd) compression library"
8 url="https://github.com/indygreg/python-zstandard"
9 depends=('python')
10 makedepends=('python-setuptools')
11 checkdepends=('python-hypothesis')
12 optdepends=('python-cffi')
13 license=('BSD')
14 arch=('x86_64')
15 source=("$pkgname-$pkgver.tar.gz::https://github.com/indygreg/python-zstandard/archive/$pkgver.tar.gz")
16 sha256sums=('15adc6bfa629d48b0bb658e9eae94c484adb66a28738fa780478eebeb41599a5')
18 build() {
19     cd "${srcdir}/${pkgname}-${pkgver}"
20     python setup.py build_ext
23 check() {
24     cd "${srcdir}/${pkgname}-${pkgver}"
25     python setup.py build_ext --inplace
26     python setup.py test
29 package() {
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"