diff options
author | Mark Wagie | 2022-03-18 09:05:21 -0600 |
---|---|---|
committer | Mark Wagie | 2022-03-18 09:05:21 -0600 |
commit | 54a00a36b26372dbed088453780f8a1de465fb2e (patch) | |
tree | e4b3f45c8a0966f764219756805bdf3f4dd85ed9 | |
parent | 94f3ec6e69be8294f0c7bedaf8aaf559da46a863 (diff) | |
download | aur-54a00a36b26372dbed088453780f8a1de465fb2e.tar.gz |
clean module cache for makepkg -C
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 9 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = cheat pkgdesc = Allows you to create and view interactive cheatsheets on the command-line pkgver = 4.2.3 - pkgrel = 3 + pkgrel = 4 url = https://github.com/cheat/cheat arch = i686 arch = x86_64 @@ -3,7 +3,7 @@ # Contributor: Bogdan <d0xi at inbox dot ru> pkgname=cheat pkgver=4.2.3 -pkgrel=3 +pkgrel=4 pkgdesc="Allows you to create and view interactive cheatsheets on the command-line" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') url="https://github.com/cheat/cheat" @@ -28,11 +28,11 @@ prepare() { cd "$pkgname-$pkgver" export GOPATH="$srcdir/gopath" - # create directory for build output - mkdir -p build - # download dependencies go mod download -x + + # create directory for build output + mkdir -p build } build() { @@ -43,10 +43,13 @@ build() { export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - go build -o build -v "./cmd/$pkgname" + go build -v -o build "./cmd/$pkgname" # Generate man page pandoc -s -t man "doc/$pkgname.1.md" -o "doc/$pkgname.1" + + # Clean module cache for makepkg -C + go clean -modcache } package() { |