blob: 87317abe28d504322181a1d40e5f3ab831fc1273 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py-crcmod
_pkgname=${pkgname#py-}
pkgver=1.7
pkgrel=1
pkgdesc="Cyclic Redundancy Check (CRC) implementation in Python"
url="https://pypi.python.org/pypi/crcmod/"
arch="all"
license="MIT"
depends=""
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="https://files.pythonhosted.org/packages/source/c/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr \
--root="$subpkgdir" --optimize=1
}
_py2() {
replaces="$pkgname"
_py python2
}
_py3() {
_py python3
}
md5sums="2d5b92117d958dcead94f9e17f54cd32 crcmod-1.7.tar.gz"
sha256sums="dc7051a0db5f2bd48665a990d3ec1cc305a466a77358ca4492826f41f283601e crcmod-1.7.tar.gz"
sha512sums="3c2f65004761c84f19d6ba95a0af74512108bad5007d9e20f8e684822e4196ce17073e58b47d2fa997e058e3d82782f3393458b6f0e86935418f38877d319a31 crcmod-1.7.tar.gz"
|