summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSefa Eyeoglu2020-06-19 07:55:26 +0200
committerSefa Eyeoglu2020-06-19 07:55:26 +0200
commit2165866ad7fc2272089d98bcdb507b01b2a2ff72 (patch)
tree11b979e4a0a9ee3093ff4a2467cf3d1942b15449
parent1dbb9a2f2c081642e779b75813968d3494ab7b4f (diff)
downloadaur-2165866ad7fc2272089d98bcdb507b01b2a2ff72.tar.gz
upgpkg: proji 0.20.0-1
upstream release Update to latest upstream version
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD24
2 files changed, 18 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 44c9fd7ddf4..964ba28cbb0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = proji
pkgdesc = A powerful cross-platform CLI project templating tool
- pkgver = 0.19.2
+ pkgver = 0.20.0
pkgrel = 1
url = https://github.com/nikoksr/proji
install = proji.install
@@ -14,7 +14,7 @@ pkgbase = proji
depends = glibc
provides = proji
conflicts = proji
- source = proji::git+https://github.com/nikoksr/proji.git#tag=v0.19.2
+ source = proji::git+https://github.com/nikoksr/proji.git#tag=v0.20.0
sha512sums = SKIP
pkgname = proji
diff --git a/PKGBUILD b/PKGBUILD
index 8c07b3bf27d..2eb1ad27604 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=proji
pkgname=${_pkgname}
-pkgver=0.19.2
+pkgver=0.20.0
pkgrel=1
pkgdesc="A powerful cross-platform CLI project templating tool"
arch=("x86_64")
@@ -21,18 +21,26 @@ sha512sums=('SKIP')
prepare() {
cd "$srcdir/$_pkgname"
- go get -v -t -d ./...
+ go mod download
+ go generate -v ./...
}
build() {
cd "$srcdir/$_pkgname"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
- go build \
- -trimpath \
- -gcflags "all=-trimpath=${PWD}" \
- -asmflags "all=-trimpath=${PWD}" \
- -ldflags "-s -w -extldflags ${LDFLAGS}" \
- ./cmd/proji
+ go build -v ./
+}
+
+check() {
+ cd "$srcdir/$_pkgname"
+
+ go vet ./...
+ go test -v -coverprofile=coverage.txt -covermode=atomic ./pkg/...
}
package() {