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

Jelle van der Waa jelle at archlinux.org
Wed Dec 2 10:53:03 UTC 2020


    Date: Wednesday, December 2, 2020 @ 10:53:03
  Author: jelle
Revision: 769136

archrelease: copy trunk to community-x86_64

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

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

Copied: python-reedsolo/repos/community-x86_64/PKGBUILD (from rev 769135, python-reedsolo/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-12-02 10:53:03 UTC (rev 769136)
@@ -0,0 +1,31 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgname=python-reedsolo
+pkgver=1.5.4
+pkgrel=1
+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')
+
+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