summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d567d0a378eb1ae1cc5800be78f07b00c0f08b0 (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
# Maintainer: Simone Gaiarin <simgunz@gmail.com>
# Contributor: Simone Gaiarin <simgunz@gmail.com>

pkgname=fnft
pkgver=0.4.1
pkgrel=1
pkgdesc="A library for fast numerical computation of (inverse) nonlinear Fourier transforms"
arch=('any')
url="https://github.com/FastNFT/FNFT"
license=('GPL2')
makedepends=('gcc' 'gcc-fortran' 'cmake')
source=("https://github.com/FastNFT/FNFT/archive/v${pkgver}.tar.gz")
sha1sums=('bc3c5be0d0546f4bf22ac41e6d105601f924dff4')

build() {

  mkdir -p "${srcdir}/build"
  cd "${srcdir}/build"
  cmake ${srcdir}/FNFT-${pkgver} -DENABLE_FFTW=ON -DBUILD_TESTS=OFF
  make -j4
}

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