Initial git recipe; has issues

This commit is contained in:
Ian Douglas Scott 2017-07-05 12:15:49 -07:00
parent d594e1ceda
commit 22934777cd
No known key found for this signature in database
GPG Key ID: 4924E10E199B5959
3 changed files with 1330 additions and 1 deletions

@ -1 +1 @@
Subproject commit bf8cc11ddcc649c3be3e97055ab6a7f4060b7946
Subproject commit c7a89531e1a788a8e5a96f12c8949f9a2a8e9bdb

1259
recipes/git/git.patch Normal file

File diff suppressed because it is too large Load Diff

70
recipes/git/recipe.sh Normal file
View File

@ -0,0 +1,70 @@
VERSION=2.13.1
TAR=https://www.kernel.org/pub/software/scm/git/git-$VERSION.tar.xz
HOST=x86_64-elf-redox
export AR="${HOST}-ar"
export AS="${HOST}-as"
export CC="${HOST}-gcc"
export CXX="${HOST}-g++"
export LD="${HOST}-ld"
export NM="${HOST}-nm"
export OBJCOPY="${HOST}-objcopy"
export OBJDUMP="${HOST}-objdump"
export RANLIB="${HOST}-ranlib"
export READELF="${HOST}-readelf"
export STRIP="${HOST}-strip"
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
if [ ! -d zlib ]
then
mkdir zlib
if [ ! -f zlib-1.2.11.tar.gz ]
then
wget http://zlib.net/zlib-1.2.11.tar.gz
fi
tar xvf zlib-1.2.11.tar.gz -C zlib --strip-components 1
fi
rm -rf zlib-prefix
mkdir zlib-prefix
pushd zlib
./configure --static --prefix=/
make -j"$(nproc)"
make DESTDIR="$PWD/../zlib-prefix" install
popd
autoconf
./configure --host=${HOST} --prefix=/ --with-zlib="${PWD}/zlib-prefix"
make
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
make clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
make prefix="$dest" install
${STRIP} $1/bin/* || true
${STRIP} $1/libexec/git-core/* || true
skip=1
}