1 # Maintainer: Filipe LaĆns (FFY00) <lains@archlinux.org>
4 pkgname=($pkgbase $pkgbase-sse4.1)
7 pkgdesc='Open-source signal processing library for software-defined radios'
9 url='https://liquidsdr.org'
12 optdepends=('fftw: efficient FFT')
13 source=("https://github.com/jgaeddert/liquid-dsp/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('b9b655d155136aee828c76ae8287726b8abf51c969e5c2ded63e99bcb064b247597eec5b896d2fd608d94363a0d3d51214af12673858a5bdf22d27d4b662de12')
17 mkdir $pkgbase-sse4.1-$pkgver
18 cp -r $pkgbase-$pkgver/* $pkgbase-sse4.1-$pkgver
20 sed -i 's|ax_cv_have_sse41_ext=.*|ax_cv_have_sse41_ext=yes|' $pkgbase-sse4.1-$pkgver/scripts/ax_ext.m4
24 echo 'Building liquid-dsp...'
25 cd "$srcdir"/$pkgbase-$pkgver
28 enable_simdoverride='' ./configure --prefix=/usr
32 echo 'Building liquid-dsp-sse4.1...'
33 cd "$srcdir"/$pkgbase-sse4.1-$pkgver
36 ./configure --prefix=/usr
42 echo 'Checking liquid-dsp...'
43 cd "$srcdir"/$pkgbase-$pkgver
47 echo 'Checking liquid-dsp-sse4.1...'
48 cd "$srcdir"/$pkgbase-sse4.1-$pkgver
53 package_liquid-dsp() {
56 make DESTDIR="$pkgdir" install
58 install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
61 package_liquid-dsp-sse4.1() {
62 pkgdesc="$pkgdesc (with SSE 4.1 extensions)"
63 provides=('liquid-dsp')
64 conflicts=('liquid-dsp')
66 cd $pkgbase-sse4.1-$pkgver
68 make DESTDIR="$pkgdir" install
70 install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE