diff --git a/packages/ta-lib/LICENSE.patch b/packages/ta-lib/LICENSE.patch new file mode 100644 index 00000000000000..0a3371de3f910f --- /dev/null +++ b/packages/ta-lib/LICENSE.patch @@ -0,0 +1,34 @@ +--- /dev/null 2024-06-05 23:38:49.702940509 +0200 ++++ ./LICENSE 2024-06-06 00:20:56.797303190 +0200 +@@ -0,0 +1,31 @@ ++TA-Lib Copyright (c) 1999-2007, Mario Fortier ++All rights reserved. ++ ++Redistribution and use in source and binary forms, with or ++without modification, are permitted provided that the following ++conditions are met: ++ ++- Redistributions of source code must retain the above copyright ++ notice, this list of conditions and the following disclaimer. ++ ++- Redistributions in binary form must reproduce the above copyright ++ notice, this list of conditions and the following disclaimer in ++ the documentation and/or other materials provided with the ++ distribution. ++ ++- Neither name of author nor the names of its contributors ++ may be used to endorse or promote products derived from this ++ software without specific prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ++"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ++LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS ++FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ++REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, ++INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ++(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ++INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ++WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE ++OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, ++EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/ta-lib/build.sh b/packages/ta-lib/build.sh index f9da8e61b1010e..889b82f0053bd3 100644 --- a/packages/ta-lib/build.sh +++ b/packages/ta-lib/build.sh @@ -1,15 +1,16 @@ -TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/ta-lib/ +TERMUX_PKG_HOMEPAGE=https://ta-lib.org/ TERMUX_PKG_DESCRIPTION="Technical analysis library with indicators like ADX" TERMUX_PKG_LICENSE="BSD" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=0.4.0 -TERMUX_PKG_REVISION=1 -TERMUX_PKG_SRCURL=https://prdownloads.sourceforge.net/ta-lib/ta-lib-$TERMUX_PKG_VERSION-src.tar.gz -TERMUX_PKG_SHA256=9ff41efcb1c011a4b4b6dfc91610b06e39b1d7973ed5d4dee55029a0ac4dc651 +TERMUX_PKG_VERSION=0.5.0 +TERMUX_PKG_SRCURL=https://github.com/TA-Lib/ta-lib/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=43e3761cf6bc4a5ab6c675268a09a72ea074643c6e06defe5e4b4e51eae1ea50 +TERMUX_PKG_AUTO_UPDATE=false TERMUX_PKG_BREAKS="talib" TERMUX_PKG_REPLACES="talib" TERMUX_PKG_BUILD_IN_SRC=true termux_step_pre_configure() { - curl https://sourceforge.net/p/ta-lib/code/HEAD/tree/tags/release-${TERMUX_PKG_VERSION//./-}/ta-lib/LICENSE.TXT?format=raw -o $TERMUX_PKG_SRCDIR/LICENSE + LDFLAGS+=" -lm" + autoreconf -fi }