mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-19 19:34:18 +08:00
45 lines
1.0 KiB
Bash
45 lines
1.0 KiB
Bash
VERSION=2.13.1
|
|
TAR=https://www.kernel.org/pub/software/scm/git/git-$VERSION.tar.xz
|
|
BUILD_DEPENDS=(zlib curl openssl expat)
|
|
DEPENDS="ca-certificates"
|
|
|
|
MAKEFLAGS="NO_MMAP=1 NEEDS_SSL_WITH_CURL=1 NEEDS_CRYPTO_WITH_SSL=1 NO_UNIX_SOCKETS=1 NEEDS_LIBICONV= NEEDS_LIBRT= BLK_SHA1=1"
|
|
|
|
function recipe_version {
|
|
echo "$VERSION"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_update {
|
|
echo "skipping update"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_build {
|
|
sysroot="${PWD}/../sysroot"
|
|
export LDFLAGS="-L$sysroot/lib"
|
|
export CPPFLAGS="-I$sysroot/include"
|
|
./configure --host=${HOST} --prefix=/ ac_cv_fread_reads_directories=yes ac_cv_snprintf_returns_bogus=yes ac_cv_lib_curl_curl_global_init=yes CURL_CONFIG=no
|
|
make ${MAKEFLAGS}
|
|
skip=1
|
|
}
|
|
|
|
function recipe_test {
|
|
echo "skipping test"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_clean {
|
|
make clean
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
dest="$(realpath $1)"
|
|
make DESTDIR="$dest" ${MAKEFLAGS} install
|
|
${STRIP} $1/bin/* || true
|
|
${STRIP} $1/libexec/git-core/* || true
|
|
rm -rf $1/share/man
|
|
skip=1
|
|
}
|