mirror of
https://github.com/LCPQ/quantum_package
synced 2024-09-02 01:23:41 +02:00
21 lines
485 B
Bash
21 lines
485 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# Installs curl for ocaml
|
||
|
# Thu Oct 23 22:02:08 CEST 2014
|
||
|
|
||
|
CURL_URL="http://curl.haxx.se/download/curl-7.38.0.tar.gz"
|
||
|
|
||
|
CURL=$(which curl)
|
||
|
if [[ -z ${CURL} ]]
|
||
|
then
|
||
|
rm -f -- bin/curl
|
||
|
${QPACKAGE_ROOT}/scripts/fetch_from_web.py ${CURL_URL} CURL.tar.gz
|
||
|
tar -zxf CURL.tar.gz && rm CURL.tar.gz ||exit 1
|
||
|
cd curl* || exit 1
|
||
|
./configure && make || exit 1
|
||
|
ln -s ${PWD}/src/curl ${QPACKAGE_ROOT}/bin
|
||
|
else
|
||
|
ln -s ${CURL} ${QPACKAGE_ROOT}/bin/curl
|
||
|
fi
|
||
|
|