summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlilac2019-04-24 03:14:51 +0800
committerlilac2019-04-24 03:14:51 +0800
commit75e9f383f5bb5ddce1b2e59631423213ccde5bbd (patch)
treefd177cbf9f63f0a4079d210d9edb94104b7a70be
parent340a8444c6a7f42bd3b699151b9c9be78d9bdbc6 (diff)
downloadaur-75e9f383f5bb5ddce1b2e59631423213ccde5bbd.tar.gz
update by lilac
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 9 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 04b6041c2fd..6bf5d088163 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-torchvision
pkgdesc = Datasets, transforms, and models specific to computer vision
pkgver = 0.2.2
- pkgrel = 2
+ pkgrel = 6
url = https://github.com/pytorch/vision
arch = any
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index 3bb5825fe42..000b1c5dd11 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=python-torchvision
pkgver=0.2.2
-pkgrel=2
+pkgrel=6
pkgdesc='Datasets, transforms, and models specific to computer vision'
arch=(any)
url=https://github.com/pytorch/vision
@@ -14,21 +14,22 @@ license=(BSD)
depends=(python-numpy python-pillow python-pytorch python-scipy python-six python-tqdm)
makedepends=(python-setuptools)
checkdepends=(python-pytest python-scipy)
-source=("torchvision-$pkgver.tar.gz"::"https://github.com/pytorch/vision/archive/v$pkgver.tar.gz")
+source=("torchvision-${pkgver}.tar.gz"::"https://github.com/pytorch/vision/archive/v${pkgver}.tar.gz")
sha512sums=('2831391b71257ae4daacd4e7d3f933a910fad548df8df1a70d2358947244de59a70ceb76c544ed3eb1bd07b9e170640234f49b4743d9bb9da0e2b33861c36849')
build() {
- cd vision-$pkgver
+ cd "vision-${pkgver}"
python setup.py build
}
check() {
- cd vision-$pkgver
+ cd "vision-${pkgver}"
PYTHONPATH=. pytest -v test
}
package() {
- cd vision-$pkgver
- python setup.py install --root=$pkgdir --optimize=1 --skip-build
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+ cd "vision-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
+# vim:set ts=2 sw=2 et: