diff options
author | Ben Westover | 2021-07-15 01:39:46 -0400 |
---|---|---|
committer | Ben Westover | 2021-07-15 01:39:46 -0400 |
commit | cf67fef73269032999e777a9f1aec973a9538b69 (patch) | |
tree | f4cb1b59f567b9c7e5d7cbe51c199c5e86058e5a | |
parent | 4b5cb6667bc7b5d5f8295c25e47d555d4f51b5f7 (diff) | |
download | aur-cf67fef73269032999e777a9f1aec973a9538b69.tar.gz |
Change way venv is managed
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 20 | ||||
-rw-r--r-- | chia-git.install | 2 |
3 files changed, 11 insertions, 15 deletions
@@ -1,7 +1,7 @@ pkgbase = chia-git pkgdesc = A new blockchain and smart transaction platform that is easier to use, more efficient, and secure. - pkgver = 1.2.1.r0.gefd401ee - pkgrel = 1 + pkgver = 1.2.1.r20.gf708500f + pkgrel = 2 url = https://www.chia.net/ install = chia-git.install arch = x86_64 @@ -1,8 +1,8 @@ # Maintainer: Ben Westover <kwestover.kw@gmail.com> pkgname='chia-git' -pkgver=1.2.1.r0.gefd401ee -pkgrel=1 +pkgver=1.2.1.r20.gf708500f +pkgrel=2 pkgdesc="A new blockchain and smart transaction platform that is easier to use, more efficient, and secure." arch=('x86_64' 'aarch64') url="https://www.chia.net/" @@ -28,20 +28,16 @@ prepare() { git submodule update --init mozilla-ca } -build() { - cd chia-blockchain - python3 -m venv venv - ln -s venv/bin/activate . - source activate +package() { + mkdir -p "$pkgdir/opt/chia-blockchain" + python -m venv "$pkgdir/opt/chia-blockchain" + ln -s "$pkgdir/opt/chia-blockchain/bin/activate" "$pkgdir/opt/chia-blockchain/activate" + source "$pkgdir/opt/chia-blockchain/bin/activate" + cd chia-blockchain pip install --upgrade pip pip install wheel pip install --extra-index-url https://pypi.chia.net/simple/ miniupnpc==2.2.2 pip install -e . --extra-index-url https://pypi.chia.net/simple/ -} - -package() { - mkdir -p "$pkgdir/opt" - mv chia-blockchain "$pkgdir/opt" find "$pkgdir/opt/chia-blockchain" -type f -exec sed -i "s|${srcdir}|/opt|g" {} \; # replace references to srcdir with final install location find "$pkgdir/opt/chia-blockchain" -name '*.pyc' -delete # remove compiled python modules because they contain references to srcdir } diff --git a/chia-git.install b/chia-git.install index 170baa373a55..acbc599beccb 100644 --- a/chia-git.install +++ b/chia-git.install @@ -1,3 +1,3 @@ post_install() { - echo -e "\033[1;32m==>\033[0m \033[1mThe chia source code is installed in /opt/chia-blockchain." + echo -e "\033[1;32m==>\033[0m \033[1mThe chia virtual environment is installed in /opt/chia-blockchain." } |