10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-23 12:56:14 +01:00
quantum_package/install/scripts/install_curl.sh

19 lines
380 B
Bash
Raw Normal View History

2015-06-05 22:33:19 +02:00
#!/bin/bash -x
TARGET=curl
function _install()
{
cd ..
2015-06-08 14:49:10 +02:00
QP_ROOT=$PWD
2015-06-05 22:33:19 +02:00
cd -
cd ${BUILD} || return 1
2015-06-08 14:49:10 +02:00
mv curl.ermine ${QP_ROOT}/bin/curl || return 1
2015-06-05 22:33:19 +02:00
}
BUILD=_build/${TARGET}
rm -rf -- ${BUILD}
mkdir ${BUILD} || exit 1
tar -xvjf Downloads/${TARGET}.tar.bz2 --strip-components=1 --directory=${BUILD} || exit 1
_install || exit 1
rm -rf -- ${BUILD} _build/${TARGET}.log
exit 0