upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / liquid-dsp / trunk / PKGBUILD
blob816e5abf5bc074c1f85671d578376dc6df5ebe56
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 pkgbase=liquid-dsp
4 pkgname=($pkgbase $pkgbase-sse4.1)
5 pkgver=1.5.0
6 pkgrel=1
7 pkgdesc='Open-source signal processing library for software-defined radios'
8 arch=('x86_64')
9 url='https://liquidsdr.org'
10 license=('MIT')
11 depends=('glibc')
12 optdepends=('fftw: efficient FFT')
13 source=("https://github.com/jgaeddert/liquid-dsp/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('b9b655d155136aee828c76ae8287726b8abf51c969e5c2ded63e99bcb064b247597eec5b896d2fd608d94363a0d3d51214af12673858a5bdf22d27d4b662de12')
16 prepare() {
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
23 build() {
24     echo 'Building liquid-dsp...'
25     cd "$srcdir"/$pkgbase-$pkgver
27     autoreconf -vif
28     enable_simdoverride='' ./configure --prefix=/usr
30     make
32     echo 'Building liquid-dsp-sse4.1...'
33     cd "$srcdir"/$pkgbase-sse4.1-$pkgver
35     autoreconf -vif
36     ./configure --prefix=/usr
38     make
41 check() {
42     echo 'Checking liquid-dsp...'
43     cd "$srcdir"/$pkgbase-$pkgver
45     make check
47     echo 'Checking liquid-dsp-sse4.1...'
48     cd "$srcdir"/$pkgbase-sse4.1-$pkgver
50     make check
53 package_liquid-dsp() {
54     cd $pkgbase-$pkgver
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