summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtakar Jašek2019-11-13 11:31:26 +0100
committerOtakar Jašek2019-11-13 11:31:26 +0100
commit422a6b624cfaa89c77a5b53d0e8905648a5bce8c (patch)
treeda55cf87eed5b163eaa19439c4587ea71e8027de
parent7712f2de6d81d91076ef4871dc7c3e4bc50135c1 (diff)
downloadaur-422a6b624cfaa89c77a5b53d0e8905648a5bce8c.tar.gz
python version agnostic
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
-rw-r--r--visdom.conf2
3 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 990c95a3b5d..342b5aa276b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -21,7 +21,7 @@ pkgbase = python-visdom-git
source = visdom.conf
source = visdom.group.conf
sha256sums = SKIP
- sha256sums = f795c8a3185282b366e7942b07b5ac74b9c293d1eb0f15727cf26905c1d7934e
+ sha256sums = 3df45ac54962cac4425bcd6ff9f118d851e0fe2dbc9cfd54089d8ae46e9fecbf
sha256sums = d71fbfa6bb3feecfb1997a459da196f8a2f0f50b33428043921803d97db5562c
pkgname = python-visdom-git
diff --git a/PKGBUILD b/PKGBUILD
index 45b1aa44f45..117b0555a68 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,7 @@ makedepends=(
options=(!emptydirs)
source=("git+https://github.com/facebookresearch/visdom.git" "visdom.conf" "visdom.group.conf")
sha256sums=('SKIP'
- 'f795c8a3185282b366e7942b07b5ac74b9c293d1eb0f15727cf26905c1d7934e'
+ '3df45ac54962cac4425bcd6ff9f118d851e0fe2dbc9cfd54089d8ae46e9fecbf'
'd71fbfa6bb3feecfb1997a459da196f8a2f0f50b33428043921803d97db5562c')
pkgver() {
@@ -35,5 +35,7 @@ install='visdom.install'
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 "${srcdir}/${_pkgbase}.group.conf" "${pkgdir}/usr/lib/sysusers.d/${_pkgbase}.group.conf"
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ sed -i "s;{site};$site_packages;g" "${srcdir}/${_pkgbase}.conf"
install -Dm 644 "${srcdir}/${_pkgbase}.conf" "${pkgdir}/usr/lib/tmpfiles.d/${_pkgbase}.conf"
}
diff --git a/visdom.conf b/visdom.conf
index 73bc0ddbf1a..14214e54971 100644
--- a/visdom.conf
+++ b/visdom.conf
@@ -1 +1 @@
-Z /usr/lib/python3.7/site-packages/visdom/static/ 775 - visdom
+Z {site}/visdom/static/ 775 - visdom