Date: Sunday, February 26, 2023 @ 07:25:35
Author: grawlinson
Revision: 1405129
archrelease: copy trunk to community-x86_64
Added:
tea/repos/community-x86_64/PKGBUILD
(from rev 1405128, tea/trunk/PKGBUILD)
Deleted:
tea/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 143 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 73 insertions(+), 70 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-26 07:24:48 UTC (rev 1405128)
+++ PKGBUILD 2023-02-26 07:25:35 UTC (rev 1405129)
@@ -1,70 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-# Contributor: John K. Luebs <jkl at johnluebs dot tld>
-
-pkgname=tea
-pkgver=0.9.0
-pkgrel=1
-pkgdesc='A command line tool to interact with Gitea servers'
-arch=('x86_64')
-url='https://gitea.com/gitea/tea'
-license=('MIT')
-depends=('glibc')
-makedepends=('git' 'go')
-replaces=('gitea-tea')
-options=('!lto')
-_commit='6c9b2f874517053b2cb8ebc6761a72ff0bb26133'
-source=("$pkgname::git+$url#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
- cd "$pkgname"
-
- git describe --tags | sed 's/^v//'
-}
-
-prepare() {
- cd "$pkgname"
-
- # create directory for build output
- mkdir build
-
- # fix zsh completion
- sed -i "s/\$PROG/tea/" contrib/autocomplete.zsh
-
- # download dependencies
- go mod download
-}
-build() {
- cd "$pkgname"
-
- # set Go flags
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
- local TAGS=""
-
- go build -v \
- -trimpath \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-linkmode external -extldflags $LDFLAGS \
- -X main.Version=${pkgver} \
- -X main.Tags=${TAGS}" \
- -o build \
- .
-}
-
-package() {
- cd "$pkgname"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/bin" build/tea
-
- # license
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-
- # completions
- install -vDm644 contrib/autocomplete.sh
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
- install -vDm644 contrib/autocomplete.zsh
"$pkgdir/usr/share/zsh/site-functions/_tea"
-}
Copied: tea/repos/community-x86_64/PKGBUILD (from rev 1405128,
tea/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-26 07:25:35 UTC (rev 1405129)
@@ -0,0 +1,73 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: John K. Luebs <jkl at johnluebs dot tld>
+
+pkgname=tea
+pkgver=0.9.2
+pkgrel=1
+pkgdesc='A command line tool to interact with Gitea servers'
+arch=('x86_64')
+url='https://gitea.com/gitea/tea'
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'go')
+replaces=('gitea-tea')
+options=('!lto')
+_commit='fff1af1029a1c63c078e058c9a5c4d3ac7054594'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # create directory for build output
+ mkdir build
+
+ # fix zsh completion
+ sed -i "s/\$PROG/tea/" contrib/autocomplete.zsh
+
+ # download dependencies
+ export GOPATH="${srcdir}"
+ go mod download
+}
+build() {
+ cd "$pkgname"
+
+ # set Go flags
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOPATH="${srcdir}"
+ local TAGS=""
+
+ go build -v \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-compressdwarf=false \
+ -linkmode external \
+ -extldflags ${LDFLAGS} \
+ -X main.Version=${pkgver} \
+ -X main.Tags=${TAGS}" \
+ -o build \
+ .
+}
+
+package() {
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" build/tea
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+
+ # completions
+ install -vDm644 contrib/autocomplete.sh
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
+ install -vDm644 contrib/autocomplete.zsh
"$pkgdir/usr/share/zsh/site-functions/_tea"
+}