summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61d05a84bddb84747ce00941e2a1cf48b5a19e43 (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
# Maintainer: Marcel Hasler <marcel dot hasler at h-brs dot de>
pkgname=sft
pkgver=1.0.1
_pkgname=SFT-${pkgver}
pkgrel=1
pkgdesc="A library for computing the fast Fourier transform (FFT)"
arch=('x86_64')
url="https://github.com/ISF-H-BRS/SFT"
license=('LGPL3')
depends=('gcc-libs')
makedepends=('cmake')
source=("${_pkgname}.tar.gz::https://github.com/ISF-H-BRS/SFT/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('4e1a2de9deb8e78d30c355ef56cc567b5c9e7fbb4ab990f2a0415b1e15d1d7ee')

build() {
  cd ${_pkgname}

  if [[ -d build ]]; then
    rm -rf build
  fi

  rm -rf include/sft/gsl

  mkdir build && cd build

  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release

  make
}

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