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

George Rawlinson grawlinson at gemini.archlinux.org
Sun Feb 6 20:52:14 UTC 2022


    Date: Sunday, February 6, 2022 @ 20:52:13
  Author: grawlinson
Revision: 1127250

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |  143 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 75 insertions(+), 68 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-06 20:51:23 UTC (rev 1127249)
+++ PKGBUILD	2022-02-06 20:52:13 UTC (rev 1127250)
@@ -1,68 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Alkindi42
-
-pkgname=sqlc
-pkgver=1.11.0
-pkgrel=1
-pkgdesc="Compile SQL to type-safe Go"
-arch=('x86_64')
-url="https://sqlc.dev"
-license=('MIT')
-depends=('glibc')
-makedepends=('go' 'git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/kyleconroy/sqlc/archive/v$pkgver.tar.gz")
-sha512sums=('1ae7476b456675613277efbc22ce0215bd3933f32f112501e737a8cba559a7c8058f8cd9cde47c08bab99b896fcc49908a2a9648c12660de72ee3269eb975164')
-b2sums=('02a094731b55608824d31df3533b8b4c287407650d1c2d90eb6df848d50389d0c520970b31d9181e0955b0e398f64350fcb9fbd415d4f117d61bf64c92bd171d')
-
-prepare() {
-  cd "$pkgname-$pkgver"
-
-  # create folder for build output
-  mkdir -p build
-
-  # download dependencies
-  go mod download
-}
-build() {
-  cd "$pkgname-$pkgver"
-
-  # 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-$pkgver"
-  go test -v ./...
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-
-  # 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 1127249, sqlc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-06 20:52:13 UTC (rev 1127250)
@@ -0,0 +1,75 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Alkindi42
+
+pkgname=sqlc
+pkgver=1.12.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='45bd150197805787cdf10e67222c28113f3c627f'
+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"
+}



More information about the arch-commits mailing list