diff options
author | Mark Wagie | 2022-10-09 11:18:28 -0600 |
---|---|---|
committer | Mark Wagie | 2022-10-09 11:18:28 -0600 |
commit | faecff75112fba23a1f476da87abd81bbc99b1d6 (patch) | |
tree | cc78c86a0a474f79e1d52e8d4f7b7aba8f6e01bc | |
parent | 65320876d2c2158e5d7a0f8aefa6f42a66c3aa0e (diff) | |
download | aur-faecff75112fba23a1f476da87abd81bbc99b1d6.tar.gz |
0.42.0
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 13 insertions, 23 deletions
@@ -1,7 +1,7 @@ pkgbase = wtfutil pkgdesc = Personal information dashboard for your terminal - pkgver = 0.41.0 - pkgrel = 4 + pkgver = 0.42.0 + pkgrel = 1 url = https://wtfutil.com arch = x86_64 arch = aarch64 @@ -9,7 +9,7 @@ pkgbase = wtfutil license = MPL2 makedepends = go depends = glibc - source = wtfutil-0.41.0.tar.gz::https://github.com/wtfutil/wtf/archive/v0.41.0.tar.gz - sha256sums = e01f45aaa7a1e31ab555071763da184d611f87b1800265dc782502da9c985eaf + source = wtfutil-0.42.0.tar.gz::https://github.com/wtfutil/wtf/archive/v0.42.0.tar.gz + sha256sums = 083bc45aa08f3ad2080adddef8f4272b0a90e5f61f0f316eea35b69e227b4d43 pkgname = wtfutil @@ -4,8 +4,8 @@ # Contributor: Bruno Inec <bruno at inec dot fr> pkgname=wtfutil -pkgver=0.41.0 -pkgrel=4 +pkgver=0.42.0 +pkgrel=1 pkgdesc="Personal information dashboard for your terminal" arch=('x86_64' 'aarch64' 'armv6h') url="https://wtfutil.com" @@ -13,7 +13,7 @@ license=('MPL2') depends=('glibc') makedepends=('go') source=("$pkgname-$pkgver.tar.gz::https://github.com/wtfutil/wtf/archive/v$pkgver.tar.gz") -sha256sums=('e01f45aaa7a1e31ab555071763da184d611f87b1800265dc782502da9c985eaf') +sha256sums=('083bc45aa08f3ad2080adddef8f4272b0a90e5f61f0f316eea35b69e227b4d43') prepare() { cd "wtf-$pkgver" @@ -26,22 +26,12 @@ prepare() { build() { cd "wtf-$pkgver" export GOPATH="$srcdir/gopath" - local flags="-s -w -X main.version=${pkgver} -X main.date=$(date +%FT%T%z)" - - go build -v \ - -trimpath \ - -buildmode=pie \ - -mod=readonly \ - -modcacherw \ - -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" ${flags}" \ - -buildvcs=false \ - -o bin/"$pkgname" -} - -check() { - cd "wtf-$pkgver" - export GOPATH="$srcdir/gopath" - go test ./... + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + make # Clean module cache for makepkg -C go clean -modcache |