summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtakar Jašek2019-06-20 11:05:10 +0200
committerOtakar Jašek2019-06-20 11:05:10 +0200
commit6a0d047ae3388a89514d8d33923b629a76c11eed (patch)
treee760ef7db21a8ee69e0173afbecb21d31f4a64e9
parenta9b691a0f717ef89f497ddd3fb67092a20ac36e4 (diff)
downloadaur-6a0d047ae3388a89514d8d33923b629a76c11eed.tar.gz
Small changes
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD14
2 files changed, 8 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6478a55fa04..88290883b51 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-visdom-git
pkgdesc = Visualization tool for Pytorch by Facebook
- pkgver = r260.caf4119
+ pkgver = r274.35a3576
pkgrel = 1
url = https://github.com/facebookresearch/visdom
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 067fba98c0e..ed541b316e7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgbase=python-visdom-git
_pkgbase="visdom"
pkgname=(python-visdom-git python2-visdom-git)
-pkgver=r260.caf4119
+pkgver=r274.35a3576
pkgrel=1
arch=(any)
url='https://github.com/facebookresearch/visdom'
@@ -22,7 +22,7 @@ source=("git+https://github.com/facebookresearch/visdom.git")
sha256sums=('SKIP')
pkgver() {
- cd "visdom"
+ cd "${_pkgbase}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
@@ -31,10 +31,10 @@ depends=('python-websocket-client' 'python-numpy' 'python-scipy' 'python-request
provides=('python-visdom')
conflicts=('python-visdom')
install='visdom.install'
- cd "${srcdir}/visdom"
+ cd "${srcdir}/${_pkgbase}"
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
+ chmod -R 775 "${pkgdir}/usr/lib/python3.7/site-packages/${_pkgbase}"
}
package_python2-visdom-git() {
@@ -42,9 +42,9 @@ depends=('python2-websocket-client' 'python2-numpy' 'python2-scipy' 'python2-req
provides=('python2-visdom')
conflicts=('python2-visdom')
install='visdom2.install'
- cd "${srcdir}/visdom"
+ cd "${srcdir}/${_pkgbase}"
python2 setup.py install --root="${pkgdir}/" --optimize=1
- mv $pkgdir/usr/bin/visdom $pkgdir/usr/bin/visdom2
+ 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
+ chmod -R 775 "${pkgdir}/usr/lib/python2.7/site-packages/${_pkgbase}"
}