mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
34 lines
947 B
Text
34 lines
947 B
Text
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
|
|
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
|
|
pkgname=py3-crcmod
|
|
_pkgname=crcmod
|
|
pkgver=1.7
|
|
pkgrel=9
|
|
pkgdesc="Cyclic Redundancy Check (CRC) implementation in Python"
|
|
url="https://pypi.org/project/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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
3c2f65004761c84f19d6ba95a0af74512108bad5007d9e20f8e684822e4196ce17073e58b47d2fa997e058e3d82782f3393458b6f0e86935418f38877d319a31 crcmod-1.7.tar.gz
|
|
"
|