summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f2aaaac3b20d2f6891fb068ab7b571d740d5ea9 (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
30
31
# Contributor: vsilv <vsilv@posteo.eu>
# Maintainer : vsilv <vsilv@posteo.eu>
pkgname=python-quandl
pkgver=v3.1.0.r0.g1d06fe5
pkgrel=1
pkgdesc="Wrapper for quandl-python"
arch=('x86_64')
url="https://github.com/quandl/quandl-python"
license=('MIT')
depends=('python>=3.6')
makedepends=('git')
provides=('python-quandl')
source=('python-quandl::git+https://github.com/quandl/quandl-python.git')

md5sums=('SKIP')
_gitname='python-quandl'

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
  cd "${srcdir}/${_gitname}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_gitname}"
  python setup.py install --prefix=/usr --root=${pkgdir} -O1 --skip-build
}