blob: cdf97b064b0e894dfc4c558ba3cd4b7a6925b03c (
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
|
# Maintainer: envolution
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=python-kornia-rs
_pkgname=kornia-rs
pkgver=0.1.8
pkgrel=5
pkgdesc="A low level computer vision library in Rust"
arch=("x86_64")
url="https://github.com/kornia/kornia-rs"
license=("Apache-2.0")
options=(!lto)
depends=(python cargo gstreamer gst-plugins-base-libs python-pytorch)
makedepends=(git rust cmake python-installer python-build python-wheel python-maturin python-packaging python-setuptools nasm)
source=("$_pkgname-$pkgver.tar.gz::https://github.com/kornia/kornia-rs/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('ba43197106ca3d0bf13b5879f70966455369e22499795421cc5cb880fd39cccb')
build() {
cd "$_pkgname-$pkgver/kornia-py"
PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" kornia-py/dist/*.whl
# Install documentation
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/README.md"
}
# vim:set ts=2 sw=2 et:
|