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

George Rawlinson grawlinson at gemini.archlinux.org
Mon Aug 8 02:30:04 UTC 2022


    Date: Monday, August 8, 2022 @ 02:30:02
  Author: grawlinson
Revision: 1260591

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-08 02:29:04 UTC (rev 1260590)
+++ PKGBUILD	2022-08-08 02:30:02 UTC (rev 1260591)
@@ -1,80 +0,0 @@
-# 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"
-}

Copied: sqlc/repos/community-x86_64/PKGBUILD (from rev 1260590, sqlc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-08 02:30:02 UTC (rev 1260591)
@@ -0,0 +1,80 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Alkindi42
+
+pkgname=sqlc
+pkgver=1.15.0
+pkgrel=1
+pkgdesc='Compile SQL to type-safe Go'
+arch=('x86_64')
+url='https://sqlc.dev'
+license=('MIT')
+depends=('glibc' 'gcc-libs')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='61f175806a0c95ed571d2bde62a63b14cf5f01da'
+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