aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-crcmod/APKBUILD
blob: 631f2a19a029a9043fa76bdb28d998a3f37f488f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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=3
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"