diff options
author | Otakar Jašek | 2019-01-22 13:46:34 +0100 |
---|---|---|
committer | Otakar Jašek | 2019-01-22 13:46:34 +0100 |
commit | 4299bd514720ff9808e6957c88561f50cac87a80 (patch) | |
tree | 294157e745adc38126facc2da8fdf3bf0d9d2dce /PKGBUILD | |
download | aur-4299bd514720ff9808e6957c88561f50cac87a80.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..095914400162 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: otaj +# +# Thanks to Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com> for +# his PKGBUILD that served as a base for this one + +pkgbase=python-visdom-git +_pkgbase="visdom" +pkgname=(python-visdom-git python2-visdom-git) +pkgver=r209.2ef12d4 +pkgrel=1 +arch=(any) +url='https://github.com/facebookresearch/visdom' +license=(CCPL:by-nc) +makedepends=( + 'python-setuptools' + 'python2-setuptools' +) +options=(!emptydirs) +source=("git+https://github.com/facebookresearch/visdom.git") +sha256sums=('SKIP') + +pkgver() { + cd "visdom" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package_python-visdom-git() { +depends=('python-websocket-client' 'python-numpy' 'python-scipy' 'python-requests' 'python-tornado' 'python-pyzmq' 'python-six' 'python-torchfile') +provides=('python-visdom') +install='visdom.install' + cd "${srcdir}/visdom" + python setup.py install --root="${pkgdir}/" --optimize=1 + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + chmod -R 775 $pkgdir/usr/lib/python3.7/site-packages/visdom +} + +package_python2-visdom-git() { +depends=('python2-websocket-client' 'python2-numpy' 'python2-scipy' 'python2-requests' 'python2-tornado' 'python2-pyzmq' 'python2-six' 'python2-torchfile') +provides=('python2-visdom') +install='visdom2.install' + cd "${srcdir}/visdom" + python2 setup.py install --root="${pkgdir}/" --optimize=1 + mv $pkgdir/usr/bin/visdom $pkgdir/usr/bin/visdom2 + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + chmod -R 775 $pkgdir/usr/lib/python2.7/site-packages/visdom +} |