* update git to 2.41.0-2
This commit is contained in:
parent
ec0c11a0d6
commit
e13d1da247
61
git/PKGBUILD
61
git/PKGBUILD
@ -4,7 +4,7 @@
|
||||
|
||||
pkgname=git
|
||||
pkgver=2.41.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='the fast distributed version control system'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url='https://git-scm.com/'
|
||||
@ -26,8 +26,8 @@ optdepends=('tk: gitk and git gui'
|
||||
'org.freedesktop.secrets: keyring credential helper'
|
||||
'libsecret: libsecret credential helper')
|
||||
install=git.install
|
||||
options=('!distcc' '!ccache')
|
||||
validpgpkeys=('96E07AF25771955980DAD10020D04E5A713660A7') # Junio C Hamano
|
||||
options=(!distcc)
|
||||
source=("https://www.kernel.org/pub/software/scm/git/git-$pkgver.tar."{xz,sign}
|
||||
'git-daemon@.service'
|
||||
'git-daemon.socket'
|
||||
@ -38,33 +38,32 @@ sha256sums=('e748bafd424cfe80b212cbc6f1bbccc3a47d4862fb1eb7988877750478568040'
|
||||
'ac4c90d62c44926e6d30d18d97767efc901076d4e0283ed812a349aece72f203'
|
||||
'7630e8245526ad80f703fac9900a1328588c503ce32b37b9f8811674fcda4a45')
|
||||
|
||||
_make_paths=(
|
||||
prefix='/usr'
|
||||
gitexecdir='/usr/lib/git-core'
|
||||
perllibdir="$(/usr/bin/perl -MConfig -wle 'print $Config{installvendorlib}')"
|
||||
)
|
||||
_make() {
|
||||
local make_options=(
|
||||
prefix='/usr'
|
||||
gitexecdir='/usr/lib/git-core'
|
||||
perllibdir="$(/usr/bin/perl -MConfig -wle 'print $Config{installvendorlib}')"
|
||||
|
||||
_make_options=(
|
||||
CFLAGS="$CFLAGS"
|
||||
LDFLAGS="$LDFLAGS"
|
||||
INSTALL_SYMLINKS=1
|
||||
MAN_BOLD_LITERAL=1
|
||||
NO_PERL_CPAN_FALLBACKS=1
|
||||
USE_LIBPCRE2=1
|
||||
)
|
||||
CFLAGS="$CFLAGS"
|
||||
LDFLAGS="$LDFLAGS"
|
||||
INSTALL_SYMLINKS=1
|
||||
MAN_BOLD_LITERAL=1
|
||||
NO_PERL_CPAN_FALLBACKS=1
|
||||
USE_LIBPCRE2=1
|
||||
)
|
||||
|
||||
make "${make_options[@]}" "$@"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
make \
|
||||
"${_make_paths[@]}" \
|
||||
"${_make_options[@]}" \
|
||||
all man
|
||||
_make all man
|
||||
|
||||
make -C contrib/credential/libsecret
|
||||
make -C contrib/subtree "${_make_paths[@]}" all man
|
||||
make -C contrib/mw-to-git "${_make_paths[@]}" all
|
||||
make -C contrib/diff-highlight "${_make_paths[@]}"
|
||||
_make -C contrib/credential/libsecret
|
||||
_make -C contrib/subtree all man
|
||||
_make -C contrib/mw-to-git all
|
||||
_make -C contrib/diff-highlight
|
||||
}
|
||||
|
||||
check() {
|
||||
@ -77,9 +76,7 @@ check() {
|
||||
# which is caused by 'git rebase' trying to use builduser's SHELL inside the
|
||||
# build chroot (i.e.: /usr/bin/nologin)
|
||||
SHELL=/bin/sh \
|
||||
make \
|
||||
"${_make_paths[@]}" \
|
||||
"${_make_options[@]}" \
|
||||
_make \
|
||||
NO_SVN_TESTS=y \
|
||||
DEFAULT_TEST_TARGET=prove \
|
||||
GIT_PROVE_OPTS="$jobs -Q" \
|
||||
@ -89,10 +86,8 @@ check() {
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
make \
|
||||
"${_make_paths[@]}" \
|
||||
"${_make_options[@]}" \
|
||||
|
||||
_make \
|
||||
DESTDIR="$pkgdir" \
|
||||
install install-man
|
||||
|
||||
@ -105,11 +100,11 @@ package() {
|
||||
# libsecret credentials helper
|
||||
install -m 0755 contrib/credential/libsecret/git-credential-libsecret \
|
||||
"$pkgdir"/usr/lib/git-core/git-credential-libsecret
|
||||
make -C contrib/credential/libsecret clean
|
||||
_make -C contrib/credential/libsecret clean
|
||||
# subtree installation
|
||||
make -C contrib/subtree "${_make_paths[@]}" DESTDIR="$pkgdir" install install-man
|
||||
_make -C contrib/subtree DESTDIR="$pkgdir" install install-man
|
||||
# mediawiki installation
|
||||
make -C contrib/mw-to-git "${_make_paths[@]}" DESTDIR="$pkgdir" install
|
||||
_make -C contrib/mw-to-git DESTDIR="$pkgdir" install
|
||||
# the rest of the contrib stuff
|
||||
find contrib/ -name '.gitignore' -delete
|
||||
cp -a ./contrib/* "$pkgdir"/usr/share/git/
|
||||
|
Loading…
x
Reference in New Issue
Block a user