Skip to content

Commit 3e81dc3

Browse files
committed
chore: update ta-lib from source to use github sources
1 parent 80acad2 commit 3e81dc3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/build_talib_from_source.bash

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ if [[ -z $1 ]]; then
77
fi
88

99
DEPS_DIR=$1
10+
VERSION=0.4.0
1011

11-
TA_LIB_TGZ="ta-lib-0.4.0-src.tar.gz"
12-
TA_LIB_URL="http://prdownloads.sourceforge.net/ta-lib/$TA_LIB_TGZ"
12+
TA_LIB_TGZ="ta-lib-0.${VERSION}-src.tar.gz"
13+
TA_LIB_URL="https://github.com/TA-Lib/ta-lib/releases/download/v${VERSION}/$TA_LIB_TGZ"
1314

1415
if [[ -d $DEPS_DIR/lib ]]; then
1516
echo "Already built"
@@ -20,7 +21,7 @@ wget -O "$DEPS_DIR/tmp/$TA_LIB_TGZ" $TA_LIB_URL
2021
pushd $DEPS_DIR/tmp
2122
tar -zxvf $TA_LIB_TGZ
2223
popd
23-
pushd $DEPS_DIR/tmp/ta-lib
24+
pushd $DEPS_DIR/tmp/ta-lib-${VERSION}
2425
./configure --prefix=$DEPS_DIR
2526
make install
2627
popd

0 commit comments

Comments
 (0)