# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=py3-crcmod _pkgname=crcmod pkgver=1.7 pkgrel=4 pkgdesc="Cyclic Redundancy Check (CRC) implementation in Python" url="https://pypi.python.org/pypi/crcmod/" arch="all" license="MIT" depends="python3" makedepends="python3-dev py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces=py-crcmod # Backwards compatibility provides=py-crcmod=$pkgver-r$pkgrel # Backwards compatibility build() { python3 setup.py build } check() { cd "$builddir"/python3 python3 -m crcmod.test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 } sha512sums="3c2f65004761c84f19d6ba95a0af74512108bad5007d9e20f8e684822e4196ce17073e58b47d2fa997e058e3d82782f3393458b6f0e86935418f38877d319a31 crcmod-1.7.tar.gz"