summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichael Serajnik2020-01-31 01:20:13 +0100
committerMichael Serajnik2020-01-31 01:20:13 +0100
commit94e9f9fd5c993345ae4ddc5882a85c4a86135edc (patch)
treed3179966e6c7d03ccb55adbd9dec2097bb59f35e /PKGBUILD
parent32c434c4f80a5a6ddc79345adc61145433cbfd9e (diff)
downloadaur-94e9f9fd5c993345ae4ddc5882a85c4a86135edc.tar.gz
feat: create virtual environment outside of user's home dir
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fbe573d63b6..9b077e5a3bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,9 +18,12 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+prepare() {
+ export HOME=$(mktemp -d) # Don't create a virtual environment inside the user's home dir
+}
+
build() {
cd "${srcdir}/${_pkgname}"
-
poetry build
}