summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarcy Hu2019-03-15 15:37:34 +0800
committerDarcy Hu2019-03-15 15:37:34 +0800
commitfcb75eb738790dc70f02fc1cd6e3a3a9c94d5d87 (patch)
treee28905c702bb913104cb2b9241c5dc441de49865
downloadaur-fcb75eb738790dc70f02fc1cd6e3a3a9c94d5d87.tar.gz
First commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD34
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0d1a05c13f4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-pretrainedmodels-git
+ pkgdesc = Pretrained ConvNets for PyTorch
+ pkgver = r136.25b4abd
+ pkgrel = 1
+ url = https://github.com/Cadene/pretrained-models.pytorch
+ arch = any
+ license = BSD
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python-munch
+ depends = python-pytorch
+ depends = python-scipy
+ depends = python-torchvision
+ depends = python-tqdm
+ provides = python-pretrainedmodels-git
+ conflicts = python-pretrainedmodels-git
+ source = python-pretrainedmodels-git::git+https://github.com/Cadene/pretrained-models.pytorch.git
+ md5sums = SKIP
+
+pkgname = python-pretrainedmodels-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cb2d9ffb870
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Butui Hu <hot123tea123@gmail.com>
+pkgname=python-pretrainedmodels-git
+pkgver=r136.25b4abd
+pkgrel=1
+pkgdesc="Pretrained ConvNets for PyTorch"
+arch=(any)
+url="https://github.com/Cadene/pretrained-models.pytorch"
+license=('BSD')
+depends=(python-munch python-pytorch python-scipy python-torchvision python-tqdm )
+makedepends=(git python-setuptools)
+provides=(python-pretrainedmodels-git)
+conflicts=(python-pretrainedmodels-git)
+source=('python-pretrainedmodels-git::git+https://github.com/Cadene/pretrained-models.pytorch.git')
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+
+# Git, no tags available
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname}"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/${pkgname}"
+ python setup.py install --root=$pkgdir --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}
+# vim:set ts=2 sw=2 et: