summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 634369c7e362c3239287726c7884466d78f781d4 (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
32
33
34
35
36
37
38
39
40
# Maintainer: Gabriel "ArcturusB" Perouze" <arcturus@openmailbox.org>

pkgname=python-sunpy-git
_gitname=sunpy
pkgver=0.8.dev
pkgrel=2
pkgdesc="Python library for solar physics"
arch=('i686' 'x86_64')
url="http://www.sunpy.org/"
license=('BSD')
depends=('python'
         'python-astropy'
         'python-numpy'
         'python-scipy'
         'python-matplotlib'
         'python-suds-jurko'
         'python-pandas'
         'python-beautifulsoup4'
         'python-sqlalchemy')
makedepends=('git')
provides=(python-sunpy)
conflicts=(python-sunpy)
options=(!emptydirs)
install=
source=(git+https://github.com/sunpy/sunpy)
md5sums=('SKIP')
_gitname=sunpy

pkgver() {
  cd "${_gitname}"
  # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  printf "%s%s.%s" "$(grep "VERSION = " setup.py | cut -d\' -f2)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${_gitname}"
  python setup.py install --root="${pkgdir}"
}

# vim:set ts=2 sw=2 et: