blob: cc92e108d3870cccb16a72e8053dfb35875c1d9d (
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
|
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-murmurhash
pkgver=1.0.9
pkgrel=0
pkgdesc="Cython bindings for MurmurHash2"
url="https://github.com/explosion/murmurhash"
arch="all"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools cython"
checkdepends="py3-pytest py3-mmh3"
subpackages="$pkgname-doc"
source="murmurhash-$pkgver.tar.gz::https://github.com/explosion/murmurhash/archive/v$pkgver.tar.gz"
builddir="$srcdir/murmurhash-$pkgver"
# results differ on big endian:
# https://github.com/explosion/murmurhash/issues/26
case "$CARCH" in
s390x) options="!check" ;;
esac
build() {
python3 setup.py build
}
check() {
cd build/lib.*
pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
rm -r "$pkgdir"/usr/lib/python3*/site-packages/murmurhash/tests/
install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
}
sha512sums="
0690c42520b0fc58c67d4888fc82ecd89c125bb7c4054b9f8398b1f27b27f130faa21d33c24b0654c1605bd310bace46eab34c6bf4c315e9bac44afaf30b89be murmurhash-1.0.9.tar.gz
"
|