summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c381de1606e05bd70a167a85062e2b587e4fea76 (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
# Maintainer: Urbain Vaes <urbain at vaes dot uk>

pkgname=python-hermipy-git
_gitname=hermipy
pkgver=r580.627564d
pkgrel=1
pkgdesc="Library for the Hermite spectral method"
arch=(any)
url="https://github.com/urbainvaes/hermipy"
license=(GPL)
makedepends=(git python-setuptools cmake boost boost-libs)
depends=(python-sympy python-numpy python-scipy)
source=("git+https://github.com/urbainvaes/hermipy")
md5sums=(SKIP)

pkgver() {
    cd $_gitname
    commit=$(git rev-list --count master)
    hash=$(git rev-parse --short HEAD)
    echo "r$commit.$hash"
}

build() {
  cd $_gitname
  python setup.py build
}

package() {
  cd $_gitname
  python setup.py install --skip-build --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE.md $pkgdir/usr/share/licenses/$pkgname/LICENSE
}