blob: 15e3bb90b793f03ed49039f0e2e8411e6f2a3c9d (
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
|
# Maintainer: trougnouf (Benoit Brummer) <trougnouf@gmail.com>
_name="piqa"
pkgname=python-pytorch-${_name}-git
provides=("python-pytorch-${_name}")
conflicts=("python-pytorch-${_name}")
pkgver=1.1.3+3+g2205651
pkgrel=1
pkgdesc="PyTorch Image Quality Assessment"
url="https://github.com/francois-rozet/${_name}"
license=('MIT')
arch=('x86_64')
depends=('python-pytorch')
makedepends=('python-setuptools')
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd ${srcdir}/${_name}
git describe --tags | sed 's/-/+/g;s/v//;'
}
build() {
cd ${srcdir}/${_name}
python setup.py build
}
package() {
cd ${srcdir}/${_name}
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
|