blob: ba04adca9576114a3481275873b8114d2a8a7249 (
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
|
pkgname='python-borghash'
_module='borghash'
pkgver='0.1.0'
pkgrel=1
pkgdesc='Memory-efficient hash table (implemented in Cython)'
url='https://github.com/borgbackup/borghash'
depends=(
'python>=3.12'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
)
license=('BSD-3-Clause')
arch=('any')
source=("${url}/releases/download/${pkgver}/${_module}-${pkgver}.tar.gz")
b2sums=('7d29b5638df5813e8fc7d9d0b4c5675b9012b5a426329a74dd7cd7def7af32d2aac4e624748b637b7b2fb640e020394db3e3c138c450c3945aef715b6b0a2683')
build() {
cd "${srcdir}/${_module}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_module}-${pkgver}"
python -m installer --compile-bytecode=2 --destdir="${pkgdir}" dist/*.whl
}
|