summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb2697bb1f5f5a26a1de86045a576693f4008fd5 (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: Gordian Edenhofer <gordian.edenhofer@gmail.com>

pkgname=python-nifty-git
_pkgname=nifty
pkgver=5.0.1.r174.g12c5065b
pkgrel=1
pkgdesc="Versatile library designed to enable the development of signal inference algorithms that operate regardless of the underlying grids (spatial, spectral, temporal, ...) and their resolutions"
arch=('any')
license=('GPL3')
url="http://ift.pages.mpcdf.de/nifty/ift.html"
depends=('python' 'python-scipy' 'python-pypocketfft')
optdepends=("python-pyhealpix: harmonic transforms involving domains on the sphere"
	"python-nifty_gridder: radio interferometry responses"
	"python-mpi4py: MPI-parallel execution"
	"python-matplotlib: field plotting")
makedepends=('python-setuptools' 'git')
provides=("python-nifty=${pkgver}")
conflicts=('python-nifty')
source=("${pkgname}"::"git+https://gitlab.mpcdf.mpg.de/ift/${_pkgname}.git")
sha512sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"
    ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' \
    || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

build() {
	cd "${srcdir}/${pkgname}"
	python setup.py clean
	rm -rf build dist
	python setup.py build
}

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