diff --git a/extra/rubberband/03-fix_build_on_armel.patch b/extra/rubberband/03-fix_build_on_armel.patch new file mode 100644 index 000000000..c2a0b9910 --- /dev/null +++ b/extra/rubberband/03-fix_build_on_armel.patch @@ -0,0 +1,28 @@ +Description: Patch fixing build on armel +Author: Jaromír Mikeš +Forwarded: yes + +Index: rubberband/src/system/sysutils.cpp +=================================================================== +--- rubberband.orig/src/system/sysutils.cpp 2013-06-05 14:18:50.718456311 +0200 ++++ rubberband/src/system/sysutils.cpp 2013-06-05 14:22:36.759577185 +0200 +@@ -219,19 +219,6 @@ + fesetenv(FE_DFL_DISABLE_SSE_DENORMS_ENV); + #endif + #endif +-#if defined __ARMEL__ +- static const unsigned int x = 0x04086060; +- static const unsigned int y = 0x03000000; +- int r; +- asm volatile ( +- "fmrx %0, fpscr \n\t" +- "and %0, %0, %1 \n\t" +- "orr %0, %0, %2 \n\t" +- "fmxr fpscr, %0 \n\t" +- : "=r"(r) +- : "r"(x), "r"(y) +- ); +-#endif + } + + void system_specific_application_initialise() diff --git a/extra/rubberband/PKGBUILD b/extra/rubberband/PKGBUILD new file mode 100644 index 000000000..9cb8556fd --- /dev/null +++ b/extra/rubberband/PKGBUILD @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Ray Rashif +# Contributor: Felipe Machado aka arch_audio + +# ALARM: Kevin Mihelich +# - patch to fix build on v5 + +pkgname=rubberband +pkgver=1.8.1 +pkgrel=2 +pkgdesc="Time-stretching and pitch-shifting audio library and utility" +arch=('i686' 'x86_64') +url="http://www.breakfastquay.com/rubberband/" +license=('GPL') +depends=('libsamplerate' 'fftw' 'vamp-plugin-sdk') +makedepends=('ladspa') +source=("http://code.breakfastquay.com/attachments/download/34/$pkgname-$pkgver.tar.bz2" + '03-fix_build_on_armel.patch') +md5sums=('6c2b4e18a714bcc297d0db81a10f9348' + '48adb11a751eaf6324167da3a0530095') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + [[ $CARCH == 'arm' ]] && patch -p1 -i ../03-fix_build_on_armel.patch + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install +}