diff options
author | Adrian Perez de Castro | 2020-05-08 09:46:28 +0300 |
---|---|---|
committer | Adrian Perez de Castro | 2020-05-08 09:49:54 +0300 |
commit | 38cc9c0de3bf71ee2d090ec7f342bfaa41f9b194 (patch) | |
tree | 20f4c18bd2218a996c726eb1c21528c59e7df5d8 | |
parent | c6ba4da0b17b81aff5bee6456daec04cd33ae68c (diff) | |
download | aur-38cc9c0de3bf71ee2d090ec7f342bfaa41f9b194.tar.gz |
Add libolm dependency, remove prepare() hacks, properly quote $LDFLAGS
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 6 insertions, 19 deletions
@@ -1,6 +1,6 @@ pkgbase = gomuks-git pkgdesc = A terminal based Matrix client written in Go - pkgver = 0.r339 + pkgver = 0.r485 pkgrel = 1 url = https://github.com/tulir/gomuks arch = x86_64 @@ -8,7 +8,7 @@ pkgbase = gomuks-git license = GPL3 makedepends = go-pie makedepends = git - depends = glibc + depends = libolm provides = gomuks conflicts = gomuks source = gomuks-git::git+https://github.com/tulir/gomuks @@ -1,31 +1,18 @@ # Maintainer: Adrian Perez de Castro <aperez@igalia.com> pkgname=gomuks-git pkgdesc='A terminal based Matrix client written in Go' -pkgver=0.r339 +pkgver=0.r485 pkgrel=1 url='https://github.com/tulir/gomuks' license=(GPL3) arch=(x86_64 i686) -depends=(glibc) +depends=(libolm) makedepends=(go-pie git) provides=("${pkgname%-git}") conflicts=("${provides[@]}") source=("${pkgname}::git+${url}") sha512sums=(SKIP) -prepare () { - cd "${pkgname}" - - # The Go modules index has some replacements to use locally checked - # out modules; so remove those to make sure "go build" below will - # ensure that the correct version is always fetched. - sed -i -e '/^replace\s/d' go.mod - - # Fix a build failure - go mod edit \ - -replace=gopkg.in/russross/blackfriday.v2@v2.0.1=github.com/russross/blackfriday/v2@v2.0.1 -} - pkgver () { cd "${pkgname}" echo "0.r$(git rev-list --count HEAD)" @@ -34,10 +21,10 @@ pkgver () { build () { cd "${pkgname}" local curdir=$(pwd) - go build \ + go build -v \ -gcflags "all=-trimpath=${curdir}" \ -asmflags "all=-trimpath=${curdir}" \ - -ldflags "-extldflags ${LDFLAGS}" \ + -ldflags "-extldflags '${LDFLAGS}'" \ . } |