[arch-commits] Commit in python-reedsolo/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 16:46:58 UTC 2021


    Date: Wednesday, December 1, 2021 @ 16:46:57
  Author: foutrelis
Revision: 1060612

archrelease: copy trunk to community-staging-x86_64

Added:
  python-reedsolo/repos/community-staging-x86_64/
  python-reedsolo/repos/community-staging-x86_64/PKGBUILD
    (from rev 1060611, python-reedsolo/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-reedsolo/repos/community-staging-x86_64/PKGBUILD (from rev 1060611, python-reedsolo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-01 16:46:57 UTC (rev 1060612)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgname=python-reedsolo
+pkgver=1.5.4
+pkgrel=2
+pkgdesc="A pure-python universal errors-and-erasures Reed-Solomon Codec"
+arch=('x86_64')
+url="https://github.com/tomerfiliba/reedsolomon"
+license=('MIT')
+makedepends=('python' 'cython')
+depends=('python')
+source=($pkgname-$pkgver.tar.gz::https://github.com/tomerfiliba/reedsolomon/archive/v${pkgver}.tar.gz)
+sha512sums=('c738f817c8f536ee86e5bcd3de73a4cf6a3e606ba196a359b6c09e7372dba31316ddb8b134d7c335100e4c2ff0158ff07caa35fee9bc20768bde23cd803e274a')
+
+prepare() {
+  cd "reedsolomon-${pkgver}"
+  # https://github.com/tomerfiliba/reedsolomon/issues/36
+  rm creedsolo.c
+}
+
+build() {
+  cd "reedsolomon-${pkgver}"
+  python3 setup.py build
+}
+
+check() {
+  cd "reedsolomon-${pkgver}"
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" python -m unittest discover tests
+}
+
+package() {
+  cd "reedsolomon-${pkgver}"
+  python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+  install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list