Skip to content
Snippets Groups Projects
Unverified Commit ccfd1885 authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

Add zlib recipe; use in git recipe

parent 27bbfb29
No related branches found
No related tags found
1 merge request!40[WIP] Git recipe
VERSION=2.13.1
TAR=https://www.kernel.org/pub/software/scm/git/git-$VERSION.tar.xz
BUILD_DEPENDS=(zlib)
HOST=x86_64-elf-redox
......@@ -26,27 +27,8 @@ function recipe_update {
}
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"
autoconf -f
./configure --host=${HOST} --prefix=/ --with-zlib="${PWD}/../sysroot"
make
skip=1
}
......
VERSION=1.2.11
TAR=http://zlib.net/zlib-$VERSION.tar.gz
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
./configure --static --prefix=/
make -j"$(nproc)"
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" install
rm -rf "$1"/{lib/pkgconfig,share}
skip=1
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment