summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c744756a44d7d895f77f56d0317be3c628efa85f (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
# Maintainer: Daichi Shinozaki <dsdseg@gmail.com>
# Maintainer: David Rosenstrauch <darose@darose.net>

pkgbase='python-common-ta-lib'
pkgname=("python-ta-lib")
pkgver=0.4.28
pkgrel=2
pkgdesc="Python wrapper for TA-Lib"
url="https://github.com/TA-Lib/ta-lib-python"
makedepends=('python-setuptools' 'python-numpy' 'cython' 'ta-lib' 'python-build')
license=('BSD')
arch=('any')
source=("https://github.com/TA-Lib/ta-lib-python/archive/refs/tags/TA_Lib-$pkgver.tar.gz")
sha256sums=('26d7285e9cad629397dc4d23db558f72d34641e63d96fe94674a1ef8240914eb')

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

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

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