summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 605ac41ac8c5ec0d6f8a3e010f2741fa7d7a3d0e (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
# Maintainer: Trougnouf (Benoit Brummer) <trougnouf@gmail.com>

_name=pyephem
pkgname=("python-${_name}-git")
pkgver=4.1.5.r2.g1499fa9
pkgrel=1
pkgdesc="Ephem python package for performing high-precision astronomy computations"
arch=('i686' 'x86_64')
url="https://rhodesmill.org/pyephem/"
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'git' 'python-docutils' 'python-sphinx')
provides=("python-${_name}")
conflicts=("python-${_name}")
source=("git+https://github.com/brandon-rhodes/${_name}.git")
md5sums=('SKIP')


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

build() {
  cd "${_name}"
  python setup.py build
}

package() {
  cd "${_name}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}