Date: Friday, December 27, 2019 @ 16:53:27 Author: svenstaro Revision: 543157
Move python-zstandard from AUR for python-xtarfile Added: python-zstandard/ python-zstandard/repos/ python-zstandard/trunk/ python-zstandard/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: python-zstandard/trunk/PKGBUILD =================================================================== --- python-zstandard/trunk/PKGBUILD (rev 0) +++ python-zstandard/trunk/PKGBUILD 2019-12-27 16:53:27 UTC (rev 543157) @@ -0,0 +1,33 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com> +# Contributor: Guillaume Horel <guillaume.ho...@gmail.com> +pkgname=('python-zstandard') +_pkgname='zstandard' +pkgver='0.12.0' +pkgrel=1 +pkgdesc="Python bindings to the Zstandard (zstd) compression library" +url="https://github.com/indygreg/python-zstandard" +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-hypothesis') +optdepends=('python-cffi') +license=('BSD') +arch=('x86_64') +source=("https://github.com/indygreg/python-zstandard/archive/$pkgver.tar.gz") +sha256sums=('f814f5528c57f010498a8251c3400f87d1fb34fa164390d49d3701de3ef001cd') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + python setup.py build_ext +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + python setup.py build_ext --inplace + python setup.py test +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}