summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77dba52f040d08e2ba0ad982a47e90acc65f2bc6 (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
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=kfr
pkgver=6.0.2
pkgrel=1
pkgdesc="Fast, modern C++ DSP framework, FFT, Sample Rate Conversion,
FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)"
url="https://www.kfrlib.com/"
arch=(x86_64)
license=('GPL-2')
makedepends=(cmake clang)
depends=()
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kfrlib/kfr/archive/$pkgver.tar.gz")
sha256sums=("0b9217d5d9e153da68637a61254dfb4faf50214f0d83a25efc73849540e0c95b")

build() {
  mkdir -p "$srcdir/${pkgname}-${pkgver}/build"
  cd "$srcdir/${pkgname}-${pkgver}/build"
  cmake -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_CXX_COMPILER=clang \
        -DBUILD_SHARED_LIBS=ON \
        -DKFR_ENABLE_CAPI_BUILD=ON \
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
        ..
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/build"
  make DESDIR=${pkgdir} install
}