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
No related tags found
No related merge requests found
...@@ -2,23 +2,21 @@ ...@@ -2,23 +2,21 @@
# Contributor: John K. Luebs <jkl at johnluebs dot tld> # Contributor: John K. Luebs <jkl at johnluebs dot tld>
pkgname=tea pkgname=tea
pkgver=0.7.0 pkgver=0.7.1
pkgrel=2 pkgrel=1
pkgdesc="A command line tool to interact with Gitea servers" pkgdesc="A command line tool to interact with Gitea servers"
arch=('x86_64') arch=('x86_64')
url="https://gitea.com/gitea/tea" url="https://gitea.com/gitea/tea"
license=('MIT') license=('MIT')
makedepends=('go') makedepends=('go')
optdepends=(
'bash-completion: for shell auto-completion'
'zsh-completions: for shell auto-completion'
)
replaces=('gitea-tea') replaces=('gitea-tea')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
b2sums=('523a220d477777bc3be69960e5e9ae038620d45fa40d15979a0e5f213f3a00d16f7d35d8c9d37138b99b0014d094bfb10feb7416b536ac6391eabc83ff520177') b2sums=('dee6d2bf3767e696ef6d18eee80d1f0999059d277b9aad55995bdcd94ac2df0e31440341cacb3aac8d77bdc90e8ad7af7e8dfda3f150689ed7cd2850b72c1839')
prepare() { prepare() {
cd "$pkgname" cd "$pkgname"
# create directory for build output
mkdir build mkdir build
# fix zsh completion # fix zsh completion
...@@ -26,18 +24,23 @@ prepare() { ...@@ -26,18 +24,23 @@ prepare() {
} }
build() { build() {
cd "$pkgname" cd "$pkgname"
# set Go flags
export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}" export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
local TAGS="" local TAGS=""
go build -v \ go build -v \
-trimpath \ -trimpath \
-buildmode=pie \ -buildmode=pie \
-mod=vendor \ -mod=vendor \
-modcacherw \ -modcacherw \
-ldflags "-linkmode external -extldflags $LDFLAGS -X "main.Version=${pkgver}" -X "main.Tags=${TAGS}"" \ -ldflags "-linkmode external -extldflags $LDFLAGS \
-o build . -X main.Version=${pkgver} \
-X main.Tags=${TAGS}" \
-o build \
.
} }
package() { 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