upg json-c util-linux
This commit is contained in:
parent
6b7ba4ab47
commit
b320761515
6 changed files with 46 additions and 29 deletions
|
@ -5,17 +5,15 @@
|
||||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||||
|
|
||||||
pkgname=json-c
|
pkgname=json-c
|
||||||
pkgver=0.16
|
pkgver=0.17
|
||||||
pkgrel=01
|
pkgrel=01
|
||||||
pkgdesc="A JSON implementation in C"
|
pkgdesc="A JSON implementation in C"
|
||||||
url="https://github.com/json-c/json-c/wiki"
|
url="https://github.com/json-c/json-c/wiki"
|
||||||
arch=(x86_64)
|
|
||||||
depends=(glibc)
|
depends=(glibc)
|
||||||
makedepends=(git cmake ninja)
|
makedepends=(git cmake ninja)
|
||||||
provides=(libjson-c.so)
|
provides=(libjson-c.so)
|
||||||
#options=(debug)
|
#options=(debug)
|
||||||
#_commit=9021cdcdd01fc9dbcbe1f06391848c2ac915212f # tags/json-c-0.15-20200726^0
|
_commit=b4c371fa0cbc4dcbaccc359ce9e957a22988fb34 # tags/json-c-0.17-20230812^0
|
||||||
_commit=2f2ddc1f2dbca56c874e8f9c31b5b963202d80e7 # tags/json-c-0.16-20220414^0
|
|
||||||
source=("git+https://github.com/json-c/json-c#commit=$_commit")
|
source=("git+https://github.com/json-c/json-c#commit=$_commit")
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
|
@ -41,7 +39,9 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cmake --build build --target test
|
cd build
|
||||||
|
ctest --output-on-failure --stop-on-failure -j$(nproc)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -49,8 +49,13 @@ package() {
|
||||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 json-c/COPYING
|
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)
|
license=(MIT)
|
||||||
|
|
||||||
sha256sums=(SKIP)
|
sha256sums=(SKIP)
|
||||||
|
|
||||||
|
## 2d75b90af733938b77b372e8a2884d4d96d25206b691646e655ca6042ad2e459 json-c-0.17-01-x86_64.pkg.tar.lz
|
||||||
|
|
||||||
|
|
|
@ -3,19 +3,24 @@
|
||||||
# Contributor: congyiwu <congyiwu AT gmail DOT com>
|
# Contributor: congyiwu <congyiwu AT gmail DOT com>
|
||||||
|
|
||||||
pkgname=json-c
|
pkgname=json-c
|
||||||
pkgver=0.16
|
pkgver=0.17
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A JSON implementation in C"
|
pkgdesc="A JSON implementation in C"
|
||||||
url="https://github.com/json-c/json-c/wiki"
|
url="https://github.com/json-c/json-c/wiki"
|
||||||
license=(MIT)
|
license=(MIT)
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
depends=(glibc)
|
depends=(
|
||||||
makedepends=(git cmake ninja)
|
glibc
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
cmake
|
||||||
|
git
|
||||||
|
ninja
|
||||||
|
)
|
||||||
provides=(libjson-c.so)
|
provides=(libjson-c.so)
|
||||||
options=(debug)
|
_commit=b4c371fa0cbc4dcbaccc359ce9e957a22988fb34 # tags/json-c-0.17-20230812^0
|
||||||
_commit=2f2ddc1f2dbca56c874e8f9c31b5b963202d80e7 # tags/json-c-0.16-20220414^0
|
|
||||||
source=("git+https://github.com/json-c/json-c#commit=$_commit")
|
source=("git+https://github.com/json-c/json-c#commit=$_commit")
|
||||||
sha256sums=('SKIP')
|
b2sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd json-c
|
cd json-c
|
||||||
|
@ -29,18 +34,22 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cmake -S json-c -B build -G Ninja \
|
local cmake_options=(
|
||||||
-DCMAKE_BUILD_TYPE=None \
|
-DCMAKE_BUILD_TYPE=None
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib
|
||||||
-DBUILD_STATIC_LIBS=OFF \
|
-DBUILD_STATIC_LIBS=OFF
|
||||||
-DENABLE_THREADING=ON \
|
-DENABLE_THREADING=ON
|
||||||
-DENABLE_RDRAND=OFF
|
-DENABLE_RDRAND=OFF
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake -S json-c -B build -G Ninja "${cmake_options[@]}"
|
||||||
cmake --build build
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cmake --build build --target test
|
cd build
|
||||||
|
ctest --output-on-failure --stop-on-failure -j$(nproc)
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -48,4 +57,4 @@ package() {
|
||||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 json-c/COPYING
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 json-c/COPYING
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set sw=2 et:
|
# vim:set sw=2 sts=-1 et:
|
||||||
|
|
|
@ -2,3 +2,4 @@ git
|
||||||
cmake
|
cmake
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
real 0m18.294s
|
|
||||||
user 0m10.424s
|
|
||||||
sys 0m1.583s
|
|
||||||
|
|
||||||
|
real 0m12.075s
|
||||||
|
user 0m13.720s
|
||||||
|
sys 0m3.199s
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
pkgbase=util-linux
|
pkgbase=util-linux
|
||||||
pkgname=(util-linux util-linux-libs)
|
pkgname=(util-linux util-linux-libs)
|
||||||
_tag='722ea47989cef5d892711614c4a2767213b177d8' # git rev-parse v${_tag_name}
|
_tag='d32d74bf433a419f2a8976530fb03669bde722cd' # git rev-parse v${_tag_name}
|
||||||
_tag_name=2.39.1
|
_tag_name=2.39.2
|
||||||
pkgver=${_tag_name/-/}
|
pkgver=${_tag_name/-/}
|
||||||
#_pkgmajor=2.39
|
#_pkgmajor=2.39
|
||||||
#_realver=${_pkgmajor}
|
#_realver=${_pkgmajor}
|
||||||
|
@ -189,6 +189,7 @@ sha256sums=(SKIP # util-linux
|
||||||
10b0505351263a099163c0d928132706e501dd0a008dac2835b052167b14abe3 # util-linux.sysusers
|
10b0505351263a099163c0d928132706e501dd0a008dac2835b052167b14abe3 # util-linux.sysusers
|
||||||
7423aaaa09fee7f47baa83df9ea6fef525ff9aec395c8cbd9fe848ceb2643f37) # 60-rfkill.rules
|
7423aaaa09fee7f47baa83df9ea6fef525ff9aec395c8cbd9fe848ceb2643f37) # 60-rfkill.rules
|
||||||
|
|
||||||
## 6c90a554a83f3481f332f9e4b0f7a13782e1039b10aaec9c4fde47c5a0cea540 util-linux-2.39.1-01-x86_64.pkg.tar.lz
|
## a8df5e87c7a094ec3706dee490e8118f8321c9aa351ef5824da72023a27efe8a util-linux-2.39.2-01-x86_64.pkg.tar.lz
|
||||||
## 64c7b1dab0ffb19852e9a1857aa3ba7a706f8796fd8fe4d30442abf94ccfc34a util-linux-libs-2.39.1-01-x86_64.pkg.tar.lz
|
## b509755f32e890f74e4fb82101421bdb09f94fdbd21bf3ff19d6b9ba62c23faa util-linux-libs-2.39.2-01-x86_64.pkg.tar.lz
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
pkgbase=util-linux
|
pkgbase=util-linux
|
||||||
pkgname=(util-linux util-linux-libs)
|
pkgname=(util-linux util-linux-libs)
|
||||||
_tag='722ea47989cef5d892711614c4a2767213b177d8' # git rev-parse v${_tag_name}
|
_tag='d32d74bf433a419f2a8976530fb03669bde722cd' # git rev-parse v${_tag_name}
|
||||||
_tag_name=2.39.1
|
_tag_name=2.39.2
|
||||||
pkgver=${_tag_name/-/}
|
pkgver=${_tag_name/-/}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Miscellaneous system utilities for Linux'
|
pkgdesc='Miscellaneous system utilities for Linux'
|
||||||
|
|
Loading…
Reference in a new issue