summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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..0895ea11bea
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-gluoncv-torch-git
+ pkgdesc = Research Framework for easy and efficient training of GANs based on PyTorch
+ pkgver = 0.0.3.r4.7759620
+ pkgrel = 1
+ url = https://github.com/zhanghang1989/gluoncv-torch
+ arch = any
+ license = MIT
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python-numpy
+ depends = python-pillow
+ depends = python-requests
+ depends = python-torchvision
+ depends = python-tqdm
+ provides = python-gluoncv-torch=0.0.3.r4.7759620
+ conflicts = python-gluoncv-torch
+ source = python-gluoncv-torch-git::git+https://github.com/zhanghang1989/gluoncv-torch.git
+ md5sums = SKIP
+
+pkgname = python-gluoncv-torch-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cec1d239f35
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Butui Hu <hot123tea123@gmail.com>
+
+pkgname=python-gluoncv-torch-git
+_pkgver=0.0.3
+pkgver=0.0.3.r4.7759620
+pkgrel=1
+pkgdesc="Research Framework for easy and efficient training of GANs based on PyTorch"
+arch=(any)
+url="https://github.com/zhanghang1989/gluoncv-torch"
+license=('MIT')
+depends=(python-numpy python-pillow python-requests python-torchvision python-tqdm)
+makedepends=(git python-setuptools)
+provides=(python-gluoncv-torch=${pkgver})
+conflicts=(python-gluoncv-torch)
+source=("${pkgname}::git+https://github.com/zhanghang1989/gluoncv-torch.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname}"
+ ver=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
+ echo "${_pkgver}.${ver}"
+}
+
+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 -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+# vim:set ts=2 sw=2 et: