Morten Linderud pushed to branch main at Arch Linux / Packaging / Packages / cue


Commits:
a29233cd by Daniel Martí at 2025-01-23T11:28:41+00:00
update to cue v0.11.2

While here, run all tests as part of check as well,
and follow the latest Go packaging guidelines outlined in the wiki.

- - - - -
bc7390c5 by Morten Linderud at 2025-01-23T18:16:24+01:00
Merge remote-tracking branch 'origin/merge-requests/2'

* origin/merge-requests/2:
  update to cue v0.11.2

- - - - -
b2c9f46e by Morten Linderud at 2025-01-23T18:18:54+01:00
upgpkg: 0.11.2-1

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,13 +1,14 @@
 pkgbase = cue
        pkgdesc = Validate and define text-based and dynamic configuration
-       pkgver = 0.9.2
+       pkgver = 0.11.2
        pkgrel = 1
        url = https://cuelang.org/
        arch = x86_64
-       license = Apache
+       license = Apache-2.0
+       checkdepends = git
        makedepends = go
        depends = glibc
-       source = 
cue-0.9.2.tar.gz::https://github.com/cue-lang/cue/archive/v0.9.2.tar.gz
-       sha512sums = 
051a4d15d74123f52f692e8b2f2e311b6356d617e4b22fa9b5d702640fcaafaf1342eb25997ffc4fe32936a61afda9929558c53878e51d2cb38e13bc471d3769
+       source = 
cue-0.11.2.tar.gz::https://github.com/cue-lang/cue/archive/v0.11.2.tar.gz
+       sha512sums = 
2cc94185c51561f1f45352aa5a50e60397bd6eb7396029e8e2e1fa36cc660d81c021c2e46270bb9fd53461d922894bcdd2aa056b5e2eaa70cf25a5ad188ba014
 
 pkgname = cue


=====================================
PKGBUILD
=====================================
@@ -1,42 +1,48 @@
 # Maintainer: Christian Rebischke <[email protected]>
+# Contributor: Daniel Martí <[email protected]>
 
 pkgname=cue
-pkgver=0.9.2
+pkgver=0.11.2
 pkgrel=1
 pkgdesc="Validate and define text-based and dynamic configuration"
 arch=('x86_64')
 url="https://cuelang.org/";
 license=('Apache-2.0')
 makedepends=('go')
+checkdepends=('git')
 depends=('glibc')
 
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cue-lang/cue/archive/v${pkgver}.tar.gz";)
-sha512sums=('051a4d15d74123f52f692e8b2f2e311b6356d617e4b22fa9b5d702640fcaafaf1342eb25997ffc4fe32936a61afda9929558c53878e51d2cb38e13bc471d3769')
+sha512sums=('2cc94185c51561f1f45352aa5a50e60397bd6eb7396029e8e2e1fa36cc660d81c021c2e46270bb9fd53461d922894bcdd2aa056b5e2eaa70cf25a5ad188ba014')
+
+prepare(){
+  cd "${pkgname}-${pkgver}"
+  mkdir -p build/
+}
 
 build() {
-  cd "${pkgname}-${pkgver}/cmd/cue/"
+  cd "${pkgname}-${pkgver}"
   export CGO_CPPFLAGS="${CPPFLAGS}"
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_CXXFLAGS="${CXXFLAGS}"
   export CGO_LDFLAGS="${LDFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
-  go build -ldflags "-s -w -linkmode=external -X 
cuelang.org/go/cmd/cue/cmd.version=${pkgver}" -v .
-  chmod +x cue
+  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external 
-mod=readonly -modcacherw"
+  go build -o build -ldflags "-X cuelang.org/go/cmd/cue/cmd.version=${pkgver}" 
./cmd/...
 }
 
-# check() {
-#   cd "${pkgname}-${pkgver}"
-#   go test -v ./...
-# }
+check() {
+  cd "${pkgname}-${pkgver}"
+  go test ./...
+}
 
 package() {
-  cd "${pkgname}-${pkgver}/cmd/cue/"
-  install -Dsm755 ./cue "${pkgdir}/usr/bin/cue"
+  cd "${pkgname}-${pkgver}"
+  install -Dsm755 build/cue "${pkgdir}/usr/bin/cue"
 
   # build bash completions
   mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
-  ./cue completion bash  > 
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+  ./build/cue completion bash  > 
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
 
   # build zsh completions
   mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
-  ./cue completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+  ./build/cue completion zsh > 
"${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cue/-/compare/ba6f5b6b75f7502da248a7c37163c0d1efd8a5ec...b2c9f46ea0e8165510387431c1ae4be5e85f7d2e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cue/-/compare/ba6f5b6b75f7502da248a7c37163c0d1efd8a5ec...b2c9f46ea0e8165510387431c1ae4be5e85f7d2e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to