Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging 
/ Packages / json-c


Commits:
084c1d4a by Jan Alexander Steffens (heftig) at 2024-07-03T23:36:28+02:00
0.17-2: Use tag pinning

- - - - -


3 changed files:

- + .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,16 @@
+pkgbase = json-c
+       pkgdesc = A JSON implementation in C
+       pkgver = 0.17
+       pkgrel = 2
+       url = https://github.com/json-c/json-c/wiki
+       arch = x86_64
+       license = MIT
+       makedepends = cmake
+       makedepends = git
+       makedepends = ninja
+       depends = glibc
+       provides = libjson-c.so
+       source = git+https://github.com/json-c/json-c#tag=json-c-0.17-20230812
+       b2sums = 
9e0b0f41703460a4a61bf4e2b005bbc436f0f563a1a82ce8acb399d5efa18744ec86e8610866568fc6f77e3eec097fd688cbb9cb6bfbf7179b8178d8ee2de3ff
+
+pkgname = json-c


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,6 @@
+[json-c]
+source = "github"
+github = "json-c/json-c"
+use_max_tag = true
+from_pattern = '^json-c-(.+)-\d+$'
+to_pattern = '\1'


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,8 @@
 
 pkgname=json-c
 pkgver=0.17
-pkgrel=1
+_tagdate=20230812
+pkgrel=2
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki";
 license=(MIT)
@@ -18,20 +19,8 @@ makedepends=(
   ninja
 )
 provides=(libjson-c.so)
-_commit=b4c371fa0cbc4dcbaccc359ce9e957a22988fb34  # tags/json-c-0.17-20230812^0
-source=("git+https://github.com/json-c/json-c#commit=$_commit";)
-b2sums=('SKIP')
-
-pkgver() {
-  cd json-c
-  local tag="$(git describe --tags --abbrev=0)"
-  local ver="$(git describe --tags)"
-  echo "${tag%-*}${ver#$tag}" | sed 's/^json-c-//;s/[^-]*-g/r&/;s/-/+/g'
-}
-
-prepare() {
-  cd json-c
-}
+source=("git+https://github.com/json-c/json-c#tag=json-c-$pkgver-$_tagdate";)
+b2sums=('9e0b0f41703460a4a61bf4e2b005bbc436f0f563a1a82ce8acb399d5efa18744ec86e8610866568fc6f77e3eec097fd688cbb9cb6bfbf7179b8178d8ee2de3ff')
 
 build() {
   local cmake_options=(
@@ -48,8 +37,7 @@ build() {
 }
 
 check() {
-  cd build
-  ctest --output-on-failure --stop-on-failure -j$(nproc)
+  ctest --test-dir build --output-on-failure --stop-on-failure -j$(nproc)
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/json-c/-/commit/084c1d4a1dbf17db73763a5661a736aad4b2e299

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/json-c/-/commit/084c1d4a1dbf17db73763a5661a736aad4b2e299
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to