33 lines
900 B
Bash
33 lines
900 B
Bash
#!/bin/bash
|
|
|
|
. ./scripts/colors.sh
|
|
. ./scripts/funcs.sh
|
|
. ./scripts/config.sh
|
|
. ./scripts/curl.sh
|
|
|
|
git() {
|
|
if [ ! -d $build/curl ]; then
|
|
curl
|
|
fi
|
|
pkgname=git
|
|
pkgver=2.46.0
|
|
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
|
|
mkdir $build/git
|
|
cd $build/git
|
|
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
|
|
check $? "Extract ${pkgname}"
|
|
cd ${pkgname}-${pkgver}
|
|
./configure \
|
|
--prefix=/usr \
|
|
--host=$CROSS_COMPILE \
|
|
NO_ICONV=true \
|
|
ac_cv_fread_reads_directories=true \
|
|
ac_cv_snprintf_returns_bogus=false
|
|
check $? "Configure ${pkgname}"
|
|
make $makeflags
|
|
check $? "Build ${pkgname}"
|
|
make DESTDIR=$rootfspath install
|
|
$CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/* $rootfspath/libexec/git-core/*
|
|
printf "$GREEN** SUCCESS: Building and installing ${pkgname}\n$RESET"
|
|
}
|