diff options
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -39,6 +39,12 @@ prepare() { sed -i "s/'deb', 'rpm'/'deb'/g" gui/tasks/distribution.js mkdir -p dist-assets/shell-completions + + # Prevent creation of a `go` directory in one's home. + # Sometimes this directory cannot be removed with even `rm -rf` unless + # one becomes root or changes the write permissions. + export GOPATH="$srcdir/gopath" + go clean -modcache } build() { @@ -61,6 +67,9 @@ build() { -v -o "../../build/lib/$arch-unknown-linux-gnu"/libwg.a \ -buildmode c-archive + # Clean now to ensure makepkg --clean works + go clean -modcache + cd "$srcdir/mullvadvpn-app" echo "Updating version in metadata files..." ./version-metadata.sh inject $PRODUCT_VERSION |