summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55fce60712c0f6a1d96d94a4871e1c928692fde8 (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
41
42
43
44
# Contributor: tuftedocelot <tuftedocelot@fastmail.fm>

pkgbase=python-filterpy
pkgname=(python-filterpy python2-filterpy)
pkgver=0.1.2
pkgrel=1
pkgdesc='Kalman filtering and optimal estimation library in Python.'
arch=('any')
url='https://github.com/rlabbe/filterpy'
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools' 'python-numpy' 'python2-numpy' 
              'python-scipy' 'python2-scipy' 'python-matplotlib' 'python2-matplotlib')
source=("https://github.com/rlabbe/filterpy/archive/$pkgver.tar.gz")
sha256sums=('42542b8a3e1792b4393ba0288cea2158ee922d029103b6cf8d52f3d11103554d')

prepare() {
  cp -a filterpy-$pkgver{,-py2}
}

build() {
  cd "$srcdir"/filterpy-$pkgver
  python setup.py build

  cd "$srcdir"/filterpy-$pkgver-py2
  python2 setup.py build
}

package_python-filterpy() {
  depends=('python-setuptools')

  cd "$srcdir"/filterpy-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}

package_python2-filterpy() {
  depends=('python2-setuptools')

  cd "$srcdir"/filterpy-$pkgver-py2
  python2 setup.py install --root="$pkgdir" --optimize=1
  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}

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