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

David Runge dvzrv at gemini.archlinux.org
Thu Jan 20 19:34:06 UTC 2022


    Date: Thursday, January 20, 2022 @ 19:34:06
  Author: dvzrv
Revision: 1111540

archrelease: copy trunk to community-x86_64

Added:
  python-crcmod/repos/community-x86_64/
  python-crcmod/repos/community-x86_64/PKGBUILD
    (from rev 1111539, python-crcmod/trunk/PKGBUILD)

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

Copied: python-crcmod/repos/community-x86_64/PKGBUILD (from rev 1111539, python-crcmod/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-01-20 19:34:06 UTC (rev 1111540)
@@ -0,0 +1,34 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=crcmod
+pkgname=python-crcmod
+pkgver=1.7
+pkgrel=4
+pkgdesc="Module for generating objects that compute the Cyclic Redundancy Check (CRC)"
+arch=(x86_64)
+url="http://crcmod.sourceforge.net/"
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('3c2f65004761c84f19d6ba95a0af74512108bad5007d9e20f8e684822e4196ce17073e58b47d2fa997e058e3d82782f3393458b6f0e86935418f38877d319a31')
+b2sums=('542bdde18f4565f574a2746de5e1fcb10d015d5c89f3eba7a0c316a3e53eb5a895664e2f51e54dcbab7d2ee6f30055137f22498f44b6c27d40d0692ff9652813')
+
+build() {
+  cd "$_name-$pkgver"
+  python setup.py build
+}
+
+check() {
+  local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
+  cd "$_name-$pkgver"
+  export PYTHONPATH="build/lib.linux-${CARCH}-${_pyver}/:${PYTHONPATH}"
+  python test/test_crcmod.py
+}
+
+package() {
+  cd "$_name-$pkgver"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list