diff options
author | mosquito | 2023-03-24 16:41:57 +0800 |
---|---|---|
committer | mosquito | 2023-03-24 16:41:57 +0800 |
commit | f4fb67d6504b62b819315f37e35de9802434aac2 (patch) | |
tree | 040aaebbb65f90b020ea34ac4d7ad55302e14ee9 | |
parent | 2c67d9e5383400f868cda6a1bac9f60a158f8e3c (diff) | |
download | aur-f4fb67d6504b62b819315f37e35de9802434aac2.tar.gz |
fix go cache files can't be removed.
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,7 +1,7 @@ # Maintainer: mosquito <mosquito@email.cn> pkgname=bobibo pkgver=1.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="A cli-app, convert pictures to ascii arts." arch=("x86_64") url="https://github.com/orzation/bobibo" @@ -15,6 +15,12 @@ optdepends=( 'doas: privilege elevation' ) +prepare() { + cd "$srcdir/$pkgname-$pkgver" + export GOPATH="$srcdir"/gopath + go clean -modcache +} + build() { export GOPATH="$srcdir"/gopath export CGO_CPPFLAGS="${CPPFLAGS}" |