added #!/bin/bash instead #!/bin/sh
This commit is contained in:
+12
-9
@@ -1,20 +1,23 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
. ./scripts/zlib.sh
|
||||
|
||||
pkgname=curl
|
||||
pkgver=8.9.1
|
||||
|
||||
curl() {
|
||||
if [ ! -d $build/zlib ]; then
|
||||
zlib
|
||||
fi
|
||||
printf "$GREEN** Building and installing curl\n$RESET"
|
||||
mkdir $build/curl
|
||||
cd $build/curl
|
||||
tar -xvf $root/downloads/curl-8.9.1.tar.xz
|
||||
check $? "Extract curl"
|
||||
cd curl-8.9.1
|
||||
mkdir $build/${pkgname}
|
||||
cd $build/${pkgname}
|
||||
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
|
||||
check $? "Extract ${pkgname}"
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--host=$CROSS_COMPILE \
|
||||
@@ -22,9 +25,9 @@ curl() {
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--with-zlib=$rootfspath
|
||||
check $? "Configure curl"
|
||||
check $? "Configure ${pkgname}"
|
||||
make $makeflags
|
||||
check $? "Build curl"
|
||||
check $? "Build ${pkgname}"
|
||||
make DESTDIR=$rootfspath install
|
||||
rm \
|
||||
-rv \
|
||||
@@ -35,5 +38,5 @@ curl() {
|
||||
$rootfspath/usr/lib/*.la \
|
||||
$rootfspath/usr/lib/pkgconfig
|
||||
$CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/curl $rootfspath/usr/lib/libcurl.so.4.8.0
|
||||
check $? "Installing to rootfs curl"
|
||||
check $? "Installing to rootfs ${pkgname}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user