summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c74dc0b62e4868d9779f4da4b9af2d80b5ed0ab1 (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
# Maintainer: Rich Lindsley <rich at dranek dot com>

_gitname=pyresample

pkgname=pyresample
pkgrel=1
pkgver=v1.13.2.5.ged5ed23
pkgdesc="Geospatial image resampling in Python"
arch=(i686 x86_64)
url="http://pyresample.readthedocs.org"
depends=('python-numpy' 'python-pyproj' 'python-configobj')
optdepends=('python-numexpr: used to optimize some bottlenecks')
makedepends=('git')
options=(!emptydirs)
license=('LGPL3')
source=(git://github.com/pytroll/$_gitname.git)
md5sums=('SKIP')

pkgver() {
  cd $srcdir/$_gitname
  # Use the tag of the last commit
  git describe --always | sed 's|-|.|g'
}

build() {
  cd "$srcdir/$_gitname"
  python setup.py build_ext --inplace
  python setup.py build
}

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

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