summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Lucas2018-01-31 05:46:23 -0500
committerJean Lucas2018-01-31 05:46:23 -0500
commitb46a3cb5bf4d68b03e3e9e21e6677c13a7282c0c (patch)
tree89c315a5b533bbcd371743400073afc015e0d723
downloadaur-b46a3cb5bf4d68b03e3e9e21e6677c13a7282c0c.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD24
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..74987893e7d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Wed Jan 31 10:45:10 UTC 2018
+pkgbase = python-torchvision
+ pkgdesc = Datasets, transforms, and models specific to computer vision
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = https://github.com/pytorch/vision
+ arch = any
+ license = BSD
+ makedepends = python-setuptools
+ depends = python
+ depends = python-pytorch
+ source = https://github.com/pytorch/vision/archive/v0.2.0.zip
+ sha512sums = 9fcd670a6c5382e06bf130bed408cf2293b94549638b657083851cabdfa2695ec4a5abd78896a0ac427d7d1f987957dfb6d9ddfe0f6aaba4ebb3e3310775149b
+
+pkgname = python-torchvision
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c5c913895f6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Jean Lucas <jean@4ray.co>
+
+# Based on python-torchvision-git by Stephen Zhang
+
+pkgname=python-torchvision
+_pkgname=vision
+pkgver=0.2.0
+pkgrel=1
+pkgdesc='Datasets, transforms, and models specific to computer vision'
+arch=(any)
+url='https://github.com/pytorch/vision'
+license=(BSD)
+depends=(python python-pytorch)
+makedepends=(python-setuptools)
+source=(https://github.com/pytorch/$_pkgname/archive/v$pkgver.zip)
+sha512sums=(9fcd670a6c5382e06bf130bed408cf2293b94549638b657083851cabdfa2695ec4a5abd78896a0ac427d7d1f987957dfb6d9ddfe0f6aaba4ebb3e3310775149b)
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ python setup.py install --root=$pkgdir --optimize=1
+
+ install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
+}