upg json-c util-linux

This commit is contained in:
joborun linux 2023-08-17 18:25:08 +03:00
parent 6b7ba4ab47
commit b320761515
6 changed files with 46 additions and 29 deletions

View File

@ -5,17 +5,15 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=json-c
pkgver=0.16
pkgver=0.17
pkgrel=01
pkgdesc="A JSON implementation in C"
url="https://github.com/json-c/json-c/wiki"
arch=(x86_64)
depends=(glibc)
makedepends=(git cmake ninja)
provides=(libjson-c.so)
#options=(debug)
#_commit=9021cdcdd01fc9dbcbe1f06391848c2ac915212f # tags/json-c-0.15-20200726^0
_commit=2f2ddc1f2dbca56c874e8f9c31b5b963202d80e7 # tags/json-c-0.16-20220414^0
_commit=b4c371fa0cbc4dcbaccc359ce9e957a22988fb34 # tags/json-c-0.17-20230812^0
source=("git+https://github.com/json-c/json-c#commit=$_commit")
pkgver() {
@ -41,7 +39,9 @@ build() {
}
check() {
cmake --build build --target test
cd build
ctest --output-on-failure --stop-on-failure -j$(nproc)
}
package() {
@ -49,8 +49,13 @@ package() {
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 json-c/COPYING
}
#---- license gpg-key sha256sums ----
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(MIT)
sha256sums=(SKIP)
## 2d75b90af733938b77b372e8a2884d4d96d25206b691646e655ca6042ad2e459 json-c-0.17-01-x86_64.pkg.tar.lz

View File

@ -3,19 +3,24 @@
# Contributor: congyiwu <congyiwu AT gmail DOT com>
pkgname=json-c
pkgver=0.16
pkgver=0.17
pkgrel=1
pkgdesc="A JSON implementation in C"
url="https://github.com/json-c/json-c/wiki"
license=(MIT)
arch=(x86_64)
depends=(glibc)
makedepends=(git cmake ninja)
depends=(
glibc
)
makedepends=(
cmake
git
ninja
)
provides=(libjson-c.so)
options=(debug)
_commit=2f2ddc1f2dbca56c874e8f9c31b5b963202d80e7 # tags/json-c-0.16-20220414^0
_commit=b4c371fa0cbc4dcbaccc359ce9e957a22988fb34 # tags/json-c-0.17-20230812^0
source=("git+https://github.com/json-c/json-c#commit=$_commit")
sha256sums=('SKIP')
b2sums=('SKIP')
pkgver() {
cd json-c
@ -29,18 +34,22 @@ prepare() {
}
build() {
cmake -S json-c -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBUILD_STATIC_LIBS=OFF \
-DENABLE_THREADING=ON \
local cmake_options=(
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_LIBDIR=/usr/lib
-DBUILD_STATIC_LIBS=OFF
-DENABLE_THREADING=ON
-DENABLE_RDRAND=OFF
)
cmake -S json-c -B build -G Ninja "${cmake_options[@]}"
cmake --build build
}
check() {
cmake --build build --target test
cd build
ctest --output-on-failure --stop-on-failure -j$(nproc)
}
package() {
@ -48,4 +57,4 @@ package() {
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 json-c/COPYING
}
# vim:set sw=2 et:
# vim:set sw=2 sts=-1 et:

View File

@ -2,3 +2,4 @@ git
cmake
ninja

View File

@ -1,5 +1,6 @@
real 0m18.294s
user 0m10.424s
sys 0m1.583s
real 0m12.075s
user 0m13.720s
sys 0m3.199s

View File

@ -7,8 +7,8 @@
pkgbase=util-linux
pkgname=(util-linux util-linux-libs)
_tag='722ea47989cef5d892711614c4a2767213b177d8' # git rev-parse v${_tag_name}
_tag_name=2.39.1
_tag='d32d74bf433a419f2a8976530fb03669bde722cd' # git rev-parse v${_tag_name}
_tag_name=2.39.2
pkgver=${_tag_name/-/}
#_pkgmajor=2.39
#_realver=${_pkgmajor}
@ -189,6 +189,7 @@ sha256sums=(SKIP # util-linux
10b0505351263a099163c0d928132706e501dd0a008dac2835b052167b14abe3 # util-linux.sysusers
7423aaaa09fee7f47baa83df9ea6fef525ff9aec395c8cbd9fe848ceb2643f37) # 60-rfkill.rules
## 6c90a554a83f3481f332f9e4b0f7a13782e1039b10aaec9c4fde47c5a0cea540 util-linux-2.39.1-01-x86_64.pkg.tar.lz
## 64c7b1dab0ffb19852e9a1857aa3ba7a706f8796fd8fe4d30442abf94ccfc34a util-linux-libs-2.39.1-01-x86_64.pkg.tar.lz
## a8df5e87c7a094ec3706dee490e8118f8321c9aa351ef5824da72023a27efe8a util-linux-2.39.2-01-x86_64.pkg.tar.lz
## b509755f32e890f74e4fb82101421bdb09f94fdbd21bf3ff19d6b9ba62c23faa util-linux-libs-2.39.2-01-x86_64.pkg.tar.lz

View File

@ -4,8 +4,8 @@
pkgbase=util-linux
pkgname=(util-linux util-linux-libs)
_tag='722ea47989cef5d892711614c4a2767213b177d8' # git rev-parse v${_tag_name}
_tag_name=2.39.1
_tag='d32d74bf433a419f2a8976530fb03669bde722cd' # git rev-parse v${_tag_name}
_tag_name=2.39.2
pkgver=${_tag_name/-/}
pkgrel=1
pkgdesc='Miscellaneous system utilities for Linux'