[arch-commits] Commit in (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Nov 1 20:36:23 UTC 2021
Date: Monday, November 1, 2021 @ 20:36:23
Author: arojas
Revision: 1035264
New python-py7zr dependency
Added:
python-pyzstd/
python-pyzstd/trunk/
python-pyzstd/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Added: python-pyzstd/trunk/PKGBUILD
===================================================================
--- python-pyzstd/trunk/PKGBUILD (rev 0)
+++ python-pyzstd/trunk/PKGBUILD 2021-11-01 20:36:23 UTC (rev 1035264)
@@ -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