[arch-commits] Commit in tea/repos/community-x86_64 (PKGBUILD PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Fri Aug 27 08:25:45 UTC 2021


    Date: Friday, August 27, 2021 @ 08:25:45
  Author: grawlinson
Revision: 1007295

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |  113 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 58 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-27 08:24:50 UTC (rev 1007294)
+++ PKGBUILD	2021-08-27 08:25:45 UTC (rev 1007295)
@@ -1,55 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: John K. Luebs <jkl at johnluebs dot tld>
-
-pkgname=tea
-pkgver=0.7.0
-pkgrel=2
-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')
-
-prepare() {
-  cd "$pkgname"
-  mkdir build
-
-  # fix zsh completion
-  sed -i "s/\$PROG/tea/" contrib/autocomplete.zsh
-}
-build() {
-  cd "$pkgname"
-  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 .
-}
-
-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 1007294, tea/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-08-27 08:25:45 UTC (rev 1007295)
@@ -0,0 +1,58 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: John K. Luebs <jkl at johnluebs dot tld>
+
+pkgname=tea
+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')
+replaces=('gitea-tea')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+b2sums=('dee6d2bf3767e696ef6d18eee80d1f0999059d277b9aad55995bdcd94ac2df0e31440341cacb3aac8d77bdc90e8ad7af7e8dfda3f150689ed7cd2850b72c1839')
+
+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"
+}



More information about the arch-commits mailing list