summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7156b1e0a5aa4be01db61ee3d06956293721f7b (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: Jia Li <lijia1608@gmail.com>
pkgname=nfft-git
pkgver=3.4.1.r129.g6ad552eb
pkgrel=1
pkgdesc="Library for computing Non-uniform Fast Fourier Transforms."
arch=(i686 x86_64)
url="https://www-user.tu-chemnitz.de/~potts/nfft/"
license=('GPL2')
depends=('fftw')
optdepends=('openmp: for OpenMP support')
makedepends=(git)
provides=(${pkgname%-*}=$pkgver)
conflicts=(nfft)
source=($pkgname::git+https://github.com/NFFT/nfft.git)
md5sums=('SKIP')

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

build() {
	cd "$pkgname"
    ./bootstrap.sh
    ./configure --prefix=/usr --enable-all --enable-openmp
    make
}

package() {
	cd "$pkgname"
	make DESTDIR="$pkgdir/" install
}