summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7666e85d1642a811db1b27c4c0cfb774632a65b0 (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
29
# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
# Contributor: HÃ¥vard Pettersson <mail@haavard.me>

_name=yahoofinancials
pkgname=python-$_name
pkgver=1.5
pkgrel=2
pkgdesc='A powerful financial data module used for pulling data from Yahoo Finance'
url='https://github.com/JECSand/yahoofinancials'
arch=('any')
license=('MIT')
depends=('python-requests' 'python-beautifulsoup4' 'python-pytz')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
        "72.patch")
sha256sums=('372d30edbb25e6bd6fafa73bf915412b40522912cff14cba9ec28a50a3a105bd'
            '837ff84e3e285bb5e8da0323c7d520f6ff5df3ce9b28cad1da390a8f896c99ad')

build(){
  cd "$srcdir/$_name-$pkgver"
  patch -p1 < ../72.patch
  python setup.py build
}

package() {
  cd "$_name-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}