[arch-commits] Commit in python-pyzstd (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Nov 1 20:36:32 UTC 2021
Date: Monday, November 1, 2021 @ 20:36:32
Author: arojas
Revision: 1035265
archrelease: copy trunk to community-x86_64
Added:
python-pyzstd/repos/
python-pyzstd/repos/community-x86_64/
python-pyzstd/repos/community-x86_64/PKGBUILD
(from rev 1035264, python-pyzstd/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-pyzstd/repos/community-x86_64/PKGBUILD (from rev 1035264, python-pyzstd/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2021-11-01 20:36:32 UTC (rev 1035265)
@@ -0,0 +1,33 @@
+# Maintainer:
+
+_pkgname=pyzstd
+pkgname=python-$_pkgname
+pkgver=0.15.0
+pkgrel=1
+pkgdesc='Python bindings to Zstandard (zstd) compression library'
+arch=(x86_64)
+url='https://github.com/animalize/pyzstd'
+license=(LGPL)
+depends=(python zstd)
+makedepends=(python-setuptools-scm)
+checkdepends=(python-tests)
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('bf15a39cb3c9b662775e22ffa8c4da09fdde6a15ece5e0ed710b6d3b4329cf36')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build --dynamic-link-zstd
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ PYTHONPATH="$PWD"/`ls -d build/lib.*` python setup.py test
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list