diff options
author | Ben Westover | 2021-05-17 16:56:25 -0400 |
---|---|---|
committer | Ben Westover | 2021-05-17 16:56:25 -0400 |
commit | 4955d858cbb2c2672ed136df3edf0ec9e2bd5e9b (patch) | |
tree | 16008985b6c5d57f1ecab8ce83fb2221ae3aae27 | |
parent | fc16a706ad0037c3a66d9f6ad83ba663e2052af0 (diff) | |
download | aur-4955d858cbb2c2672ed136df3edf0ec9e2bd5e9b.tar.gz |
Fix chia not found bug
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | chia-git.install | 2 |
3 files changed, 10 insertions, 10 deletions
@@ -1,12 +1,10 @@ pkgbase = chia-git pkgdesc = A new blockchain and smart transaction platform that is easier to use, more efficient, and secure. - pkgver = 1.1.1.r14.ge7304c59 + pkgver = 1.1.5.r41.g1c808b6c3 pkgrel = 1 url = https://www.chia.net/ install = chia-git.install arch = x86_64 - arch = i686 - arch = armv7h arch = aarch64 license = Apache makedepends = cmake @@ -1,10 +1,10 @@ # Maintainer: Ben Westover <kwestover.kw@gmail.com> pkgname='chia-git' -pkgver=1.1.1.r14.ge7304c59 +pkgver=1.1.5.r41.g1c808b6c3 pkgrel=1 pkgdesc="A new blockchain and smart transaction platform that is easier to use, more efficient, and secure." -arch=('x86_64' 'i686' 'armv7h' 'aarch64') +arch=('x86_64' 'aarch64') url="https://www.chia.net/" license=('Apache') install=chia-git.install @@ -26,11 +26,13 @@ build() { python3 -m venv venv ln -s venv/bin/activate . . ./activate - pip install https://download-chia-net.s3-us-west-2.amazonaws.com/simple/miniupnpc/miniupnpc-2.1.tar.gz - pip install -e . + pip install --extra-index-url https://pypi.chia.net/simple/ miniupnpc==2.1 + pip install -e . --extra-index-url https://pypi.chia.net/simple/ } package() { - mkdir -p "$pkgdir"/opt - mv chia-blockchain "$pkgdir"/opt + 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 bb91a450ebaf..170baa373a55 100644 --- a/chia-git.install +++ b/chia-git.install @@ -1,3 +1,3 @@ post_install() { - echo -e "\033[0;32m==\033[0m> \033[1mThe chia source code is installed in /opt/chia-blockchain." + echo -e "\033[1;32m==>\033[0m \033[1mThe chia source code is installed in /opt/chia-blockchain." } |