* update git to 2.48.1-1

This commit is contained in:
Alexander Baldeck 2025-02-03 20:03:15 +01:00
parent f66772be12
commit 949ae567f5
4 changed files with 43 additions and 15 deletions

View File

@ -1,6 +1,6 @@
pkgbase = git
pkgdesc = the fast distributed version control system
pkgver = 2.47.1
pkgver = 2.48.1
pkgrel = 1
url = https://git-scm.com/
install = git.install
@ -24,8 +24,10 @@ pkgbase = git
depends = grep
depends = shadow
depends = zlib
optdepends = git-zsh-completion: upstream zsh completion
optdepends = tk: gitk and git gui
optdepends = openssh: ssh transport and crypto
optdepends = man: show help with `git command --help`
optdepends = perl-libwww: git svn
optdepends = perl-term-readkey: git svn and interactive.singlekey setting
optdepends = perl-io-socket-ssl: git send-email TLS support
@ -38,16 +40,20 @@ pkgbase = git
optdepends = subversion: git svn
optdepends = org.freedesktop.secrets: keyring credential helper
optdepends = libsecret: libsecret credential helper
source = https://www.kernel.org/pub/software/scm/git/git-2.47.1.tar.xz
source = https://www.kernel.org/pub/software/scm/git/git-2.47.1.tar.sign
source = https://www.kernel.org/pub/software/scm/git/git-2.48.1.tar.xz
source = https://www.kernel.org/pub/software/scm/git/git-2.48.1.tar.sign
source = git-daemon@.service
source = git-daemon.socket
source = git-sysusers.conf
validpgpkeys = 96E07AF25771955980DAD10020D04E5A713660A7
sha256sums = f3d8f9bb23ae392374e91cd9d395970dabc5b9c5ee72f39884613cd84a6ed310
sha256sums = 1c5d545f5dc1eb51e95d2c50d98fdf88b1a36ba1fa30e9ae5d5385c6024f82ad
sha256sums = SKIP
sha256sums = 14c0b67cfe116b430645c19d8c4759419657e6809dfa28f438c33a005245ad91
sha256sums = ac4c90d62c44926e6d30d18d97767efc901076d4e0283ed812a349aece72f203
sha256sums = 7630e8245526ad80f703fac9900a1328588c503ce32b37b9f8811674fcda4a45
pkgname = git
pkgname = git-zsh-completion
depends = git
depends = zsh

4
git/.nvchecker.toml Normal file
View File

@ -0,0 +1,4 @@
[git]
source = "git"
git = "https://github.com/git/git.git"
prefix = "v"

View File

@ -1,9 +1,11 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Christian Hesse <mail@eworm.de>
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Christian Heusel <gromit@archlinux.org>
# Contributor: Dan McGee <dan@archlinux.org>
pkgname=git
pkgver=2.47.1
pkgbase=git
pkgname=(git git-zsh-completion)
pkgver=2.48.1
pkgrel=1
pkgdesc='the fast distributed version control system'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
@ -13,8 +15,10 @@ depends=('curl' 'expat' 'perl' 'perl-error' 'perl-mailtools'
'openssl' 'pcre2' 'grep' 'shadow' 'zlib')
makedepends=('python' 'xmlto' 'asciidoc')
checkdepends=('openssh')
optdepends=('tk: gitk and git gui'
optdepends=('git-zsh-completion: upstream zsh completion'
'tk: gitk and git gui'
'openssh: ssh transport and crypto'
'man: show help with `git command --help`'
'perl-libwww: git svn'
'perl-term-readkey: git svn and interactive.singlekey setting'
'perl-io-socket-ssl: git send-email TLS support'
@ -33,7 +37,7 @@ source=("https://www.kernel.org/pub/software/scm/git/git-$pkgver.tar."{xz,sign}
'git-daemon@.service'
'git-daemon.socket'
'git-sysusers.conf')
sha256sums=('f3d8f9bb23ae392374e91cd9d395970dabc5b9c5ee72f39884613cd84a6ed310'
sha256sums=('1c5d545f5dc1eb51e95d2c50d98fdf88b1a36ba1fa30e9ae5d5385c6024f82ad'
'SKIP'
'14c0b67cfe116b430645c19d8c4759419657e6809dfa28f438c33a005245ad91'
'ac4c90d62c44926e6d30d18d97767efc901076d4e0283ed812a349aece72f203'
@ -57,7 +61,7 @@ _make() {
}
build() {
cd "$srcdir/$pkgname-$pkgver"
cd "$srcdir/$pkgbase-$pkgver"
_make all man
@ -68,7 +72,7 @@ build() {
}
check() {
cd "$srcdir/$pkgname-$pkgver"
cd "$srcdir/$pkgbase-$pkgver"
local jobs
jobs=$(expr "$MAKEFLAGS" : '.*\(-j[0-9]*\).*') || true
@ -85,8 +89,8 @@ check() {
test
}
package() {
cd "$srcdir/$pkgname-$pkgver"
package_git() {
cd "$srcdir/$pkgbase-$pkgver"
_make \
DESTDIR="$pkgdir" \
@ -117,3 +121,11 @@ package() {
# sysusers file
install -D -m 0644 "$srcdir"/git-sysusers.conf "$pkgdir"/usr/lib/sysusers.d/git.conf
}
package_git-zsh-completion() {
description='the fast distributed version control system - upstream zsh completion'
depends=('git' 'zsh')
install -d "$pkgdir"/usr/share/zsh/site-functions/
ln -s ../../git/completion/git-completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_git
}

View File

@ -1,13 +1,19 @@
#!/bin/sh
post_install() {
update_etc_shells() {
# make git-shell a valid shell
if ! grep -qe '^/usr/bin/git-shell$' etc/shells; then
echo '/usr/bin/git-shell' >> etc/shells
fi
}
# do not modify user settings (shell) in post-upgrade function!
post_install() {
update_etc_shells
}
post_upgrade() {
update_etc_shells
}
post_remove() {
sed -i -r '/^\/usr\/bin\/git-shell$/d' etc/shells