blob: 1e56a55bf84794b186a8aaba61fc8c353fbee273 (
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
|
# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
_name=google-crc32c
pkgname=python-google-crc32c
pkgver=1.0.0
pkgrel=1
pkgdesc="A python wrapper of the C library 'Google CRC32C'"
arch=('any')
url="https://pypi.org/project/google-crc32c/"
license=('APACHE')
depends=(
'python>=3.5'
'python-cffi>=1.0.0'
)
makedepends=('python-setuptools')
options=(!emptydirs)
source=(
"https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz"
)
sha256sums=(
'9439b960b6ecd847557675d130fc3626d762bf535da595c20a6949a705fb3eae'
)
build() {
# Google CRC32C is complex to compile at the moment. So only the pure Python implementation is used currently.
cd "${srcdir}/${_name}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|