Skip to content
Snippets Groups Projects
Commit 235d1550 authored by George Rawlinson's avatar George Rawlinson :coffee:
Browse files

New upstream release.

parent bf56263e
No related branches found
Tags 0.7.1-1
No related merge requests found
......@@ -2,23 +2,21 @@
# Contributor: John K. Luebs <jkl at johnluebs dot tld>
pkgname=tea
pkgver=0.7.0
pkgrel=2
pkgver=0.7.1
pkgrel=1
pkgdesc="A command line tool to interact with Gitea servers"
arch=('x86_64')
url="https://gitea.com/gitea/tea"
license=('MIT')
makedepends=('go')
optdepends=(
'bash-completion: for shell auto-completion'
'zsh-completions: for shell auto-completion'
)
replaces=('gitea-tea')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
b2sums=('523a220d477777bc3be69960e5e9ae038620d45fa40d15979a0e5f213f3a00d16f7d35d8c9d37138b99b0014d094bfb10feb7416b536ac6391eabc83ff520177')
b2sums=('dee6d2bf3767e696ef6d18eee80d1f0999059d277b9aad55995bdcd94ac2df0e31440341cacb3aac8d77bdc90e8ad7af7e8dfda3f150689ed7cd2850b72c1839')
prepare() {
cd "$pkgname"
# create directory for build output
mkdir build
# fix zsh completion
......@@ -26,18 +24,23 @@ prepare() {
}
build() {
cd "$pkgname"
# set Go flags
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
local TAGS=""
go build -v \
-trimpath \
-buildmode=pie \
-mod=vendor \
-modcacherw \
-ldflags "-linkmode external -extldflags $LDFLAGS -X "main.Version=${pkgver}" -X "main.Tags=${TAGS}"" \
-o build .
-ldflags "-linkmode external -extldflags $LDFLAGS \
-X main.Version=${pkgver} \
-X main.Tags=${TAGS}" \
-o build \
.
}
package() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment