Date: Sunday, April 3, 2022 @ 09:29:33 Author: grawlinson Revision: 1180955
archrelease: copy trunk to community-x86_64 Added: sqlc/repos/community-x86_64/PKGBUILD (from rev 1180954, sqlc/trunk/PKGBUILD) Deleted: sqlc/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 150 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 75 insertions(+), 75 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-04-03 09:28:50 UTC (rev 1180954) +++ PKGBUILD 2022-04-03 09:29:33 UTC (rev 1180955) @@ -1,75 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@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" -} Copied: sqlc/repos/community-x86_64/PKGBUILD (from rev 1180954, sqlc/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-04-03 09:29:33 UTC (rev 1180955) @@ -0,0 +1,75 @@ +# Maintainer: George Rawlinson <grawlin...@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" +}