blob: 4420756fde49157371f0c93df0337f25a2bd4fa7 (
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
|
# Maintainer: peippo <christoph+aur@christophfink.com>
pkgname="python-cykhash"
_name=${pkgname#python-}
pkgdesc="cython wrapper for khash-sets/maps, efficient implementation of isin and unique"
url="https://github.com/realead/cykhash/"
pkgver=2.0.1
pkgrel=2
arch=("x86_64")
license=("MIT")
depends=(
"python"
)
makedepends=(
"cython"
"python-build"
"python-installer"
"python-setuptools"
"python-wheel"
)
source=(
"https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
"${pkgname}-${pkgver}_LICENSE::https://raw.githubusercontent.com/realead/cykhash/fdecec4/LICENSE"
)
b2sums=(
"c6583717bbf6d20d0e060ae36191846be3a570b0852e43e0081ddd43dfd3f4bbacd44a96f140a40dbf50d7192322a3b228da6c3ffe5c7f4b84acb7f41c045e81"
"d86079e188ebdb8768b9cedf361726b249a58adcffc82c8b8a2f98d5179aee265dd346fca6e4b56ac44e1296a06c69f0b3cdbed0a10b271a12fb2a7d612cc303"
)
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
cd "${srcdir}"
install -Dm644 "${pkgname}-${pkgver}_LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|