mirror of
https://github.com/LCPQ/quantum_package
synced 2024-08-31 00:23:42 +02:00
19 lines
392 B
Bash
19 lines
392 B
Bash
![]() |
#!/bin/bash -x
|
||
|
TARGET=curl
|
||
|
|
||
|
function _install()
|
||
|
{
|
||
|
cd ..
|
||
|
QPACKAGE_ROOT=$PWD
|
||
|
cd -
|
||
|
cd ${BUILD} || return 1
|
||
|
mv curl.ermine ${QPACKAGE_ROOT}/bin/curl || return 1
|
||
|
}
|
||
|
|
||
|
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
|