blob: f7f3664724d89165f1537eeab62136fb6a7655e6 (
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: otaj
pkgname=python-kornia-git
_name=kornia
pkgver=v0.1.3.r110.ga48164b
pkgrel=1
arch=(any)
url='https://github.com/arraiyopensource/kornia'
pkgdesc='Visualization tool for Pytorch by Facebook'
license=(Apache)
makedepends=(
'git'
'python-setuptools'
)
depends=('python-pytorch')
provides=('python-kornia')
conflicts=('python-kornia')
options=(!emptydirs)
source=("${_name}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${_name}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "${srcdir}/${_name}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|