diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | numpy.patch | 13 |
3 files changed, 24 insertions, 5 deletions
@@ -1,12 +1,13 @@ pkgbase = friture pkgdesc = An application to visualize and analyze live audio data in real-time. pkgver = 0.41 - pkgrel = 1 + pkgrel = 2 url = http://tlecomte.github.com/friture/ arch = i686 arch = x86_64 license = GPL3 makedepends = cython + makedepends = python-wheel depends = python-appdirs depends = python-docutils depends = python-multipledispatch @@ -19,7 +20,9 @@ pkgbase = friture depends = python-sounddevice optdepends = jack: for JACK I/O support source = https://github.com/tlecomte/friture/archive/v0.41.tar.gz + source = numpy.patch sha256sums = f778798392ff29284c2cdbc3563ec83552b8a8a464a5ad35e5678448cc335a7c + sha256sums = 311df0ab345e57b0baee49a94165cbb37fc9ade4d74c7b81b4a3b542ee4bfdc1 pkgname = friture @@ -4,18 +4,20 @@ pkgname=friture pkgver=0.41 -pkgrel=1 +pkgrel=2 pkgdesc="An application to visualize and analyze live audio data in real-time." arch=(i686 x86_64) url="http://tlecomte.github.com/friture/" license=('GPL3') depends=('python-appdirs' 'python-docutils' 'python-multipledispatch' 'python-numpy' 'python-opengl' 'python-pa-ringbuffer' 'python-pyqt5' 'python-pyrr' 'python-rtmixer' 'python-sounddevice') optdepends=('jack: for JACK I/O support') -makedepends=('cython') -source=("https://github.com/tlecomte/$pkgname/archive/v$pkgver.tar.gz") +makedepends=('cython' 'python-wheel') +source=("https://github.com/tlecomte/$pkgname/archive/v$pkgver.tar.gz" + numpy.patch) build() { cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i ../numpy.patch python setup.py build } @@ -27,4 +29,5 @@ package() { sed -i "s|usr|/usr|g" "$pkgdir"/usr/share/applications/$pkgname.desktop } -sha256sums=('f778798392ff29284c2cdbc3563ec83552b8a8a464a5ad35e5678448cc335a7c') +sha256sums=('f778798392ff29284c2cdbc3563ec83552b8a8a464a5ad35e5678448cc335a7c' + '311df0ab345e57b0baee49a94165cbb37fc9ade4d74c7b81b4a3b542ee4bfdc1') diff --git a/numpy.patch b/numpy.patch new file mode 100644 index 000000000000..4effca3d423d --- /dev/null +++ b/numpy.patch @@ -0,0 +1,13 @@ +diff --git a/friture/audioproc.py b/friture/audioproc.py +index dfce022..4c70a6e 100644 +--- a/friture/audioproc.py ++++ b/friture/audioproc.py +@@ -106,7 +106,7 @@ class audioproc(): + def update_freq_cache(self): + if len(self.freq) != self.fft_size / (2 * self.decimation) + 1: + self.logger.info("audioproc: updating self.freq cache") +- self.freq = linspace(0, SAMPLING_RATE / (2 * self.decimation), self.fft_size / (2 * self.decimation) + 1) ++ self.freq = linspace(0, SAMPLING_RATE / (2 * self.decimation), int(self.fft_size / (2 * self.decimation) + 1)) + + # compute psychoacoustic weighting. See http://en.wikipedia.org/wiki/A-weighting + f = self.freq |