diff options
author | Jakub Kubuxu Sztandera | 2020-05-01 00:15:30 +0200 |
---|---|---|
committer | Jakub Kubuxu Sztandera | 2020-05-01 00:15:30 +0200 |
commit | a2da03892acbbc823b1a51949e038c5f214999e3 (patch) | |
tree | dc8494d9423db6f4c2dc58c8ae3f6922fdb3e8a5 | |
parent | d95639e4fcc36711b028db8f705c44654164419a (diff) | |
download | aur-a2da03892acbbc823b1a51949e038c5f214999e3.tar.gz |
Switch to testnet/3
Signed-off-by: Jakub <Kubuxu> Sztandera <kubuxu@protonmail.ch>
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 12 insertions, 13 deletions
@@ -1,6 +1,6 @@ pkgbase = lotus-git pkgdesc = Filecoin client in Go - pkgver = 0.2.10.r1012.g1120298b0 + pkgver = 0.2.10.r1023.g1120298b0 pkgrel = 1 url = https://github.com/filecoin-project/lotus arch = x86_64 @@ -11,7 +11,7 @@ pkgbase = lotus-git makedepends = git depends = ocl-icd depends = gcc-libs - source = git+https://github.com/filecoin-project/lotus.git#branch=feat/ldflags + source = git+https://github.com/filecoin-project/lotus.git#branch=testnet/3 b2sums = SKIP pkgname = lotus-git @@ -2,7 +2,7 @@ _pkgname=lotus pkgname=$_pkgname-git -pkgver=0.2.10.r1012.g1120298b0 +pkgver=0.2.10.r1023.g1120298b0 pkgrel=1 pkgdesc='Filecoin client in Go' arch=('x86_64') @@ -10,17 +10,17 @@ url="https://github.com/filecoin-project/$_pkgname" license=('MIT' 'APACHE') makedepends=('go' 'gcc' 'git') depends=('ocl-icd' 'gcc-libs') -source=("git+${url}.git#branch=feat/ldflags") +source=("git+${url}.git#branch=testnet/3") b2sums=('SKIP') pkgver() { - cd "$srcdir/$_pkgname" - VERSION=$(git tag | grep -ve "-dev" | sed 's/-/~/g' | sort --version-sort --reverse | sed 's/~/-/g' | head -n1) - COUNT=$(git rev-list "$VERSION.." --count) - CHKSUM=$(git rev-list master | head -n1) - VERSION=$(echo "$VERSION" | sed 's/^v//' | sed 's/-//') - printf "%s.%s.%s" "$VERSION" "r$COUNT" "g${CHKSUM:0:9}" + cd "$srcdir/$_pkgname" + VERSION=$(git tag | grep -ve "-dev" | sed 's/-/~/g' | sort --version-sort --reverse | sed 's/~/-/g' | head -n1) + COUNT=$(git rev-list "$VERSION.." --count) + CHKSUM=$(git rev-list master | head -n1) + VERSION=$(echo "$VERSION" | sed 's/^v//' | sed 's/-//') + printf "%s.%s.%s" "$VERSION" "r$COUNT" "g${CHKSUM:0:9}" } prepare() { @@ -34,10 +34,9 @@ prepare() { build() { cd "$srcdir/$_pkgname" export GOPATH="${srcdir}/../go" - echo $CFLAGS export CGO_CFLAGS="${CFLAGS}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" GOFLAGS="-trimpath -buildmode=pie" make build } |