summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffa374fb2512fcbff62d17156f1c92dd0acb3fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Daichi Shinozaki <dsdseg@gmail.com>
# Maintainer: David Rosenstrauch <darose@darose.net>

pkgbase='python-common-ta-lib'
pkgname=("python-ta-lib")
_altpkgname='ta_lib'
pkgver=0.7.1
pkgrel=1
pkgdesc="Python wrapper for TA-Lib"
url="https://github.com/TA-Lib/ta-lib-python"
makedepends=('python-setuptools' 'python-numpy>2.0.0' 'python-numpy<3.0.0' 'cython' 'ta-lib>=0.7.1' 'python-build' 'python-installer')
license=('BSD')
arch=('any')
source=("https://github.com/TA-Lib/ta-lib-python/releases/download/v$pkgver/$_altpkgname-$pkgver.tar.gz")
sha256sums=('d28ec282d58294c6ed3c604c3b11cc3b5843cedd84bf3831c512ca4139d0caf4')

build() {
    cd "$srcdir"/$_altpkgname-$pkgver
    python -m build --wheel --no-isolation
}

package_python-ta-lib() {
    depends=('python-numpy' 'ta-lib')
    optdepends=('cython')

    cd $srcdir/$_altpkgname-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
}