blob: 3bcd925e1888901c4c490a3b9c3cddc34231ce8f (
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
|
# Maintainer: trougnouf (Benoit Brummer) <trougnouf@gmail.com>
_name="piqa"
pkgname=python-pytorch-${_name}
provides=("${pkgname}")
pkgver=1.1.7
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=("https://github.com/francois-rozet/${_name}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('0b6f3249dbc20055ec17d4a7cfdca5830a61934ea5fc8b11f4223935099933b7')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
|