summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorButui Hu2019-04-09 15:01:24 +0800
committerButui Hu2019-04-09 15:01:24 +0800
commit166f96f9a56a06b58aa22f4a7d328df2bd6af30e (patch)
tree9c850c45c5310c44965a939a52c37f8e3102346f /PKGBUILD
downloadaur-166f96f9a56a06b58aa22f4a7d328df2bd6af30e.tar.gz
add python-gluoncv-torch-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
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: