Date: Wednesday, September 14, 2022 @ 05:26:08
  Author: grawlinson
Revision: 1301147

archrelease: copy trunk to community-x86_64

Added:
  tea/repos/community-x86_64/PKGBUILD
    (from rev 1301146, tea/trunk/PKGBUILD)
Deleted:
  tea/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  137 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 70 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-14 05:24:10 UTC (rev 1301146)
+++ PKGBUILD    2022-09-14 05:26:08 UTC (rev 1301147)
@@ -1,67 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-# Contributor: John K. Luebs <jkl at johnluebs dot tld>
-
-pkgname=tea
-pkgver=0.8.0
-pkgrel=2
-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='1c690c5ff862f85ef44b90a5e8f426b669b0128c'
-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
-}
-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=vendor \
-    -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 1301146, 
tea/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-09-14 05:26:08 UTC (rev 1301147)
@@ -0,0 +1,70 @@
+# 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"
+}

Reply via email to