diff options
author | Daniel Maslowski | 2018-02-20 20:29:11 +0100 |
---|---|---|
committer | Daniel Maslowski | 2018-02-20 20:29:11 +0100 |
commit | d5034873cbd9b59ee80b31cee83d46151a758315 (patch) | |
tree | b618e2fc8d00973aa60e2173a7f2f139b0ca9287 | |
parent | d6de2587269d6e9ace140c170d9c2dfbd2b811f5 (diff) | |
download | aur-d5034873cbd9b59ee80b31cee83d46151a758315.tar.gz |
fix _CONDA_ROOT and install scripts for other shells
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 10 insertions, 5 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Sun Feb 18 23:22:33 UTC 2018 +# Tue Feb 20 18:56:19 UTC 2018 pkgbase = python-conda pkgdesc = OS-agnostic, system-level binary package manager and ecosystem pkgver = 4.4.10 - pkgrel = 1 + pkgrel = 2 url = http://conda.pydata.org/docs/ arch = any license = BSD @@ -3,7 +3,7 @@ _pyname=conda pkgname=python-conda pkgver=4.4.10 -pkgrel=1 +pkgrel=2 pkgdesc="OS-agnostic, system-level binary package manager and ecosystem" arch=('any') url="http://conda.pydata.org/docs/" @@ -21,7 +21,7 @@ sha512sums=('935745439bfdc0c485e7575e34042768e26a87649994869cfada51fa2c6ecc28124 prepare() { cd "$srcdir/${_pyname}-$pkgver" - sed -i "1s/.*/set _CONDA_EXE \/usr\/bin\/conda/" conda/shell/etc/fish/conf.d/conda.fish + sed -i 's/$_CONDA_ROOT//' conda/shell/bin/{de,}activate } package() { @@ -31,7 +31,12 @@ package() { install -Dm 655 conda/shell/bin/activate $pkgdir/usr/bin/activate install -Dm 655 conda/shell/bin/conda $pkgdir/usr/bin/conda install -Dm 655 conda/shell/bin/deactivate $pkgdir/usr/bin/deactivate - install -Dm 644 conda/shell/etc/fish/conf.d/conda.fish $pkgdir/etc/fish/conf.d/conda.fish + echo 'set _CONDA_EXE=/usr/bin/conda' | cat - conda/shell/etc/fish/conf.d/conda.fish > conda.fish + install -Dm 644 conda.fish $pkgdir/etc/fish/conf.d/conda.fish + echo 'set _CONDA_EXE=/usr/bin/conda' | cat - conda/shell/etc/profile.d/conda.csh > conda.csh + install -Dm 644 conda.csh $pkgdir/etc/profile.d/conda.csh + echo 'export _CONDA_EXE=/usr/bin/conda' | cat - conda/shell/etc/profile.d/conda.sh > conda.sh + install -Dm 644 conda.sh $pkgdir/etc/profile.d/conda.sh install -Dm 644 LICENSE.txt $pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt } |