mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 21:34:18 +08:00
Initial git recipe; has issues
This commit is contained in:
parent
d594e1ceda
commit
22934777cd
2
pkgutils
2
pkgutils
@ -1 +1 @@
|
||||
Subproject commit bf8cc11ddcc649c3be3e97055ab6a7f4060b7946
|
||||
Subproject commit c7a89531e1a788a8e5a96f12c8949f9a2a8e9bdb
|
||||
1259
recipes/git/git.patch
Normal file
1259
recipes/git/git.patch
Normal file
File diff suppressed because it is too large
Load Diff
70
recipes/git/recipe.sh
Normal file
70
recipes/git/recipe.sh
Normal 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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user