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

George Rawlinson grawlinson at gemini.archlinux.org
Fri Jun 10 08:14:33 UTC 2022


    Date: Friday, June 10, 2022 @ 08:14:33
  Author: grawlinson
Revision: 1229936

archrelease: copy trunk to community-x86_64

Added:
  sqlc/repos/community-x86_64/PKGBUILD
    (from rev 1229935, sqlc/trunk/PKGBUILD)
Deleted:
  sqlc/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  155 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 80 insertions(+), 75 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-10 08:11:54 UTC (rev 1229935)
+++ PKGBUILD	2022-06-10 08:14:33 UTC (rev 1229936)
@@ -1,75 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Alkindi42
-
-pkgname=sqlc
-pkgver=1.13.0
-pkgrel=2
-pkgdesc='Compile SQL to type-safe Go'
-arch=('x86_64')
-url='https://sqlc.dev'
-license=('MIT')
-depends=('glibc')
-makedepends=('git' 'go')
-options=('!lto')
-_commit='e7aa4bd581b1c24f27b61dbed8018f4f7af5d3fc'
-source=("$pkgname::git+https://github.com/kyleconroy/sqlc.git#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  git describe --tags | sed 's/^v//'
-}
-
-prepare() {
-  cd "$pkgname"
-
-  # create folder for build output
-  mkdir -p build
-
-  # download dependencies
-  go mod download
-}
-build() {
-  cd "$pkgname"
-
-  # set Go flags
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CXXFLAGS="${CXXFLAGS}"
-
-  # build binary
-  go build -v \
-    -trimpath \
-    -buildmode=pie \
-    -mod=readonly \
-    -modcacherw \
-    -ldflags "-linkmode external -extldflags ${LDFLAGS}" \
-    -o build \
-    ./cmd/...
-
-  # generate shell completions
-  for sh in bash fish zsh; do
-    ./build/sqlc completion "$sh" > "build/$sh"
-  done
-}
-
-check() {
-  cd "$pkgname"
-  go test -v ./...
-}
-
-package() {
-  cd "$pkgname"
-
-  # binary
-  install -vDm755 -t "$pkgdir/usr/bin" build/sqlc
-
-  # license
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-
-  # shell completions
-  install -vDm644 build/bash "$pkgdir/usr/share/bash-completion/completions/sqlc"
-  install -vDm644 build/fish "$pkgdir/usr/share/fish/vendor_completions.d/sqlc.fish"
-  install -vDm644 build/zsh "$pkgdir/usr/share/zsh/site-functions/_sqlc"
-}

Copied: sqlc/repos/community-x86_64/PKGBUILD (from rev 1229935, sqlc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-10 08:14:33 UTC (rev 1229936)
@@ -0,0 +1,80 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Alkindi42
+
+pkgname=sqlc
+pkgver=1.14.0
+pkgrel=1
+pkgdesc='Compile SQL to type-safe Go'
+arch=('x86_64')
+url='https://sqlc.dev'
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='d20ca82f645f81522d55d8043a245edf00eee691'
+source=("$pkgname::git+https://github.com/kyleconroy/sqlc.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # create folder for build output
+  mkdir -p build
+
+  # download dependencies
+  go mod download
+}
+
+build() {
+  cd "$pkgname"
+
+  # set Go flags
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+
+  # build binary
+  go build -v \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-linkmode external -extldflags ${LDFLAGS}" \
+    -o build \
+    ./cmd/...
+
+  # generate shell completions
+  for sh in bash fish zsh; do
+    ./build/sqlc completion "$sh" > "build/$sh"
+  done
+}
+
+check() {
+  cd "$pkgname"
+
+  # skip internal/endtoend
+  rm -f internal/endtoend/endtoend_test.go
+
+  go test -v ./...
+}
+
+package() {
+  cd "$pkgname"
+
+  # binary
+  install -vDm755 -t "$pkgdir/usr/bin" build/sqlc
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+
+  # shell completions
+  install -vDm644 build/bash "$pkgdir/usr/share/bash-completion/completions/sqlc"
+  install -vDm644 build/fish "$pkgdir/usr/share/fish/vendor_completions.d/sqlc.fish"
+  install -vDm644 build/zsh "$pkgdir/usr/share/zsh/site-functions/_sqlc"
+}



More information about the arch-commits mailing list