* update libgit2 to 1:1.8.2-1

This commit is contained in:
Alexander Baldeck 2024-11-05 07:48:31 +01:00
parent 456bff469e
commit 42bab6e700
3 changed files with 58 additions and 12 deletions

38
libgit2/.SRCINFO Normal file
View File

@ -0,0 +1,38 @@
pkgbase = libgit2
pkgdesc = A linkable library for Git
pkgver = 1.8.2
pkgrel = 1
epoch = 1
url = https://github.com/libgit2/libgit2
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = LicenseRef-GPL-2.0-only-with-linking-exception
makedepends = cmake
makedepends = libssh2
makedepends = openssl
makedepends = pcre2
makedepends = python
depends = gcc-libs
depends = glibc
depends = http-parser
depends = zlib
provides = libgit2.so
source = https://github.com/libgit2/libgit2/archive/v1.8.2/libgit2-v1.8.2.tar.gz
sha512sums = 568daa01b254acd07624143c1fd949b131f174a0595e4c6031b1eee38afd59ec3917ffc5ade3310d2a17f22bf5062bc6d03603cb952b25cdefd6c1cec9b8033c
b2sums = 5e6c68cd1b364b435130059ee12bcb889db5b00af00dc5e3b62e8b302cf3a81fa351568a5f094bc99041877a3272c98bd65999d6e81cc02ff1a31e0d07ea17ff
pkgname = libgit2
depends = gcc-libs
depends = glibc
depends = http-parser
depends = zlib
depends = libssh2
depends = libssh2.so
depends = openssl
depends = libcrypto.so
depends = libssl.so
depends = pcre2
depends = libpcre2-8.so

5
libgit2/.nvchecker.toml Normal file
View File

@ -0,0 +1,5 @@
[libgit2]
source = "git"
git = "https://github.com/libgit2/libgit2"
include_regex = 'v\d+\.\d+\.\d+'
prefix = "v"

View File

@ -7,8 +7,8 @@
pkgname=libgit2
# NOTE: add the following packages to rebuild TODOs on soname change (although they do not link against libgit2.so):
# julia
pkgver=1.8.1
pkgrel=1.1
pkgver=1.8.2
pkgrel=1
epoch=1
pkgdesc="A linkable library for Git"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
@ -29,19 +29,20 @@ makedepends=(
)
provides=(libgit2.so)
source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
sha512sums=('7429fbdc46ae44fd359e9260cbe33d9ce9276db810c096f12c43e5d302d01011463cdfd98d604e59780187e020e216e839823a77479dc12f952a37628516af78')
b2sums=('14558400d092dd963becfd3d4966a8d0799811be15fea8c5bc1e91be24f14bb81d33d82b2fb8dd8895e167f634a5d532d62a4609167bcb1d93143275207bbf6d')
sha512sums=('568daa01b254acd07624143c1fd949b131f174a0595e4c6031b1eee38afd59ec3917ffc5ade3310d2a17f22bf5062bc6d03603cb952b25cdefd6c1cec9b8033c')
b2sums=('5e6c68cd1b364b435130059ee12bcb889db5b00af00dc5e3b62e8b302cf3a81fa351568a5f094bc99041877a3272c98bd65999d6e81cc02ff1a31e0d07ea17ff')
build() {
local cmake_options=(
-B build
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX=/usr
-DREGEX_BACKEND=pcre2
-DUSE_HTTP_PARSER=system
-DUSE_SSH=ON
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
-D REGEX_BACKEND=pcre2
# NOTE: may require further consolidation: https://github.com/libgit2/libgit2/issues/6923
-D USE_HTTP_PARSER=http-parser
-D USE_SSH=ON
-S $pkgname-$pkgver
-Wno-dev
-W no-dev
)
cmake "${cmake_options[@]}"
@ -50,16 +51,18 @@ build() {
check() {
local ignored_tests=(
'auth_clone|'
'invasive|'
'online|'
'ssh|'
'network_url_parse__hostname_implied_root_empty_port|'
'network_url_parse__hostname_empty_port|'
'network_url_parse__ipv4_implied_root_empty_port|'
'network_url_parse__ipv4_empty_port|'
'network_url_parse__ipv6_implied_root_empty_port|'
'network_url_parse__ipv6_empty_port|'
'proxy_auto_not_detected'
'proxy|'
'proxy_auto_not_detected|'
'ssh'
)
local ifs="$IFS"
IFS=