blob: b258db981d467b8a7d60e9553206dc4a6e7f871d (
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
|
# Maintainer: Byeonghoon Yoo <bhyoo@bhyoo.com>
_name=graspologic-native
pkgname=python-graspologic-native
pkgver=1.2.5
pkgrel=1
pkgdesc="Python native companion module to the graspologic library"
arch=('x86_64' 'aarch64')
url="https://github.com/graspologic-org/graspologic-native"
license=('MIT')
depends=(
'glibc'
'libgcc'
'python'
)
makedepends=(
'maturin'
'python-installer'
'rust'
)
source=("${pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name//-/_}-${pkgver}.tar.gz")
sha256sums=('27ea7e01fa44466c0b4cdd678d4561e5d3dc0cb400015683b7ae1386031257a0')
prepare() {
cd "${_name//-/_}-${pkgver}"
sed -i 's/requires-python = ">=3.8,<3.14"/requires-python = ">=3.8"/' pyproject.toml
}
build() {
cd "${_name//-/_}-${pkgver}"
maturin build --release --strip
}
package() {
cd "${_name//-/_}-${pkgver}"
python -m installer --destdir="${pkgdir}" target/wheels/*.whl
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 NOTICE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|