[arch-commits] Commit in sqlc/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Fri Apr 29 02:06:46 UTC 2022
Date: Friday, April 29, 2022 @ 02:06:45
Author: grawlinson
Revision: 1191749
archrelease: copy trunk to community-x86_64
Added:
sqlc/repos/community-x86_64/PKGBUILD
(from rev 1191748, sqlc/trunk/PKGBUILD)
Deleted:
sqlc/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 150 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 75 insertions(+), 75 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-29 02:06:12 UTC (rev 1191748)
+++ PKGBUILD 2022-04-29 02:06:45 UTC (rev 1191749)
@@ -1,75 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Alkindi42
-
-pkgname=sqlc
-pkgver=1.13.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='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 1191748, sqlc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-29 02:06:45 UTC (rev 1191749)
@@ -0,0 +1,75 @@
+# 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"
+}
More information about the arch-commits
mailing list