summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartino Pilia2018-05-03 12:41:08 +0200
committerMartino Pilia2018-05-03 12:41:08 +0200
commitd69700a8ff251b609b46a383cf7833ca28d43b6f (patch)
tree99a587fd66597eff73529d282faa3d75d8fcb7aa
downloadaur-d69700a8ff251b609b46a383cf7833ca28d43b6f.tar.gz
package submission
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD20
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4cac3ffb1f9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-torchsample
+ pkgdesc = High-Level Training, Data Augmentation, and Utilities for Pytorch
+ pkgver = 0.1.3
+ pkgrel = 1
+ url = https://github.com/ncullen93/torchsample
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ depends = python-pytorch
+ depends = python-nibabel
+ depends = python-tqdm
+ depends = python-numpy
+ depends = python-six
+ source = https://github.com/ncullen93/torchsample/archive/v0.1.3.tar.gz
+ sha512sums = 58c7fdcc6e39a7258fe1858899c4375d40e291e10b14e2f5f3529475a29ae2a884d13cef4e0c2247cf2a38973795e1e44769e3349420b82363eae95874ec7927
+
+pkgname = python-torchsample
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b98eb50f1aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
+_pkgname=torchsample
+pkgname=python-$_pkgname
+pkgver=0.1.3
+pkgrel=1
+pkgdesc="High-Level Training, Data Augmentation, and Utilities for Pytorch"
+arch=('any')
+url="https://github.com/ncullen93/torchsample"
+license=('MIT')
+depends=('python-pytorch' 'python-nibabel' 'python-tqdm' 'python-numpy' 'python-six')
+optdepends=()
+makedepends=('python-setuptools')
+source=("https://github.com/ncullen93/torchsample/archive/v${pkgver}.tar.gz")
+sha512sums=('58c7fdcc6e39a7258fe1858899c4375d40e291e10b14e2f5f3529475a29ae2a884d13cef4e0c2247cf2a38973795e1e44769e3349420b82363eae95874ec7927')
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ python setup.py install --optimize=1 --root="$pkgdir"
+}