[arch-commits] Commit in sqlc/trunk (PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Sun Feb 6 20:51:24 UTC 2022
Date: Sunday, February 6, 2022 @ 20:51:23
Author: grawlinson
Revision: 1127249
upgpkg: sqlc 1.12.0-1
New upstream release.
Modified:
sqlc/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-06 20:29:26 UTC (rev 1127248)
+++ PKGBUILD 2022-02-06 20:51:23 UTC (rev 1127249)
@@ -2,7 +2,7 @@
# Contributor: Alkindi42
pkgname=sqlc
-pkgver=1.11.0
+pkgver=1.12.0
pkgrel=1
pkgdesc="Compile SQL to type-safe Go"
arch=('x86_64')
@@ -9,13 +9,20 @@
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')
+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-$pkgver"
+ cd "$pkgname"
# create folder for build output
mkdir -p build
@@ -24,7 +31,7 @@
go mod download
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# set Go flags
export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -48,12 +55,12 @@
}
check() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
go test -v ./...
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" build/sqlc
More information about the arch-commits
mailing list