33 lines
783 B
Bash
33 lines
783 B
Bash
#!/bin/bash
|
|
|
|
. ./scripts/colors.sh
|
|
. ./scripts/funcs.sh
|
|
. ./scripts/config.sh
|
|
. ./scripts/zlib.sh
|
|
|
|
curl() {
|
|
if [ ! -d $build/zlib ]; then
|
|
zlib
|
|
fi
|
|
pkgname=curl
|
|
pkgver=8.9.1
|
|
printf "$GREEN** Building and installing curl\n$RESET"
|
|
mkdir $build/${pkgname}
|
|
cd $build/${pkgname}
|
|
tar -xf $root/downloads/${pkgname}-${pkgver}.tar.xz
|
|
check $? "Extract ${pkgname}"
|
|
cd ${pkgname}-${pkgver}
|
|
./configure \
|
|
--prefix=/usr \
|
|
--host=$CROSS_COMPILE \
|
|
--without-ssl \
|
|
--disable-static \
|
|
--enable-shared \
|
|
--with-zlib=$rootfspath
|
|
check $? "Configure ${pkgname}"
|
|
make $makeflags
|
|
check $? "Build ${pkgname}"
|
|
make DESTDIR=$rootfspath install
|
|
check $? "Installing to rootfs ${pkgname}"
|
|
}
|