# Maintainer: HÃ¥vard Pettersson pkgbase=python-iexfinance-git pkgname=(python-iexfinance-git python2-iexfinance-git) pkgver=v0.3.1.0.gd6d7710 pkgrel=1 pkgdesc="Python wrapper for the Investor's Exchange (IEX) Developer API" url='https://addisonlynch.github.io/iexfinance/' arch=(any) license=(apache) depends=(python python-pandas python-requests) makedepends=(python-setuptools python2-setuptools) conflicts=(python-iexfinance) source=("${pkgname[0]}::git+https://github.com/addisonlynch/iexfinance.git") sha256sums=(SKIP) pkgver() { cd ${pkgname[0]} git describe --tags --long | sed 's/-/./g' } build() { cp -a ${pkgname[0]} ${pkgname[1]} } package_python-iexfinance-git() { cd ${pkgname[0]} python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 } package_python2-iexfinance-git() { depends=(python2 python2-pandas python2-requests) conflicts=(python2-iexfinance) cd ${pkgname[1]} python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 }