1. # Maintainer: Jeremy Sands <cto@jeremysands.com>
  2.  
  3. pkgname=boodler
  4. pkgver=2.0.4
  5. pkgrel=1
  6. pkgdesc="Boodler is a dynamic soundscape creator, capable of producing things such as endless thunderstorm sounds."
  7. arch=('i686' 'x86_64')
  8. url="http://www.boodler.org"
  9. license=('LGPL')
  10. depends=('python2' 'python2-pyqt')
  11. install=${pkgname}.install
  12. source=(http://boodler.org/dl/Boodler-$pkgver.tar.gz
  13. http://boodler.org/dl/etc/boodle-ui-qt.py
  14. http://www.jeremysands.com/archlinux/gui-path-fix.patch)
  15. md5sums=('79c2c20733416998659ab2e2d310d88a'
  16. '49b49ba9e9b7785045341c69549a0c5a'
  17. 'f7ec61be55784316a7d7bda00502baca')
  18.  
  19. build() {
  20. cd "$startdir"/src/Boodler-$pkgver
  21. python2 setup.py build || return 1
  22.  
  23. python2 setup.py install --prefix "$startdir"/pkg || return 1
  24.  
  25. # Boodler puts stuff in /bin ... frowny face
  26. mkdir -p "$startdir"/pkg/usr/bin
  27. mv "$startdir"/pkg/bin/* "$startdir"/pkg/usr/bin/
  28.  
  29. # Add the GUI
  30. cd "$startdir"/src/
  31. # Patch the path fail in the GUI
  32. patch -p0 < gui-path-fix.patch || return 1
  33. cp boodle-ui-qt.py "$startdir"/pkg/usr/bin/
  34. chmod 755 "$startdir"/pkg/usr/bin/boodle-ui-qt.py
  35.  
  36. }