33 lines
776 B
Plaintext
33 lines
776 B
Plaintext
|
pkgname="git"
|
||
|
pkgver="2.44.0"
|
||
|
pkgdesc="A fast distributed version control system"
|
||
|
homepage="https://git-scm.com/"
|
||
|
license=("GPL2")
|
||
|
sources=("${pkgname}-${pkgver}.tar.xz")
|
||
|
urls=("https://www.kernel.org/pub/software/scm/git/git-2.44.0.tar.xz")
|
||
|
md5sums=("7e4eb7c45e9ba7c90fa51deeea49732f")
|
||
|
|
||
|
distdir=${DIST_DIR}/${pkgname}-${pkgver}
|
||
|
|
||
|
src_prepare() {
|
||
|
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||
|
}
|
||
|
|
||
|
src_check(){
|
||
|
SHELL=/bin/sh \
|
||
|
make \
|
||
|
NO_SVN_TESTS=y \
|
||
|
GIT_TEST_OPTS="--root=/dev/shm/git-test" \
|
||
|
test
|
||
|
}
|
||
|
|
||
|
src_build() {
|
||
|
./configure --prefix=/usr \
|
||
|
--with-gitconfig=/etc/gitconfig \
|
||
|
--with-python=python3 &&
|
||
|
make &&
|
||
|
src_check &&
|
||
|
make perllibdir=/usr/lib/perl5/5.38/site_perl DESTDIR="$pkgdir" install
|
||
|
}
|
||
|
|