talimat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Tanım: Ses sinyallerinden açıklamalar ayıklamak için bir araç
  2. # URL: https://aubio.org/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: doxygen ffmpeg fftw jack libsamplerate libsndfile python-setuptools python-numpy txt2man jack sphinx
  5. # Grup:
  6. isim=aubio
  7. surum=0.4.6
  8. devir=1
  9. kaynak=(https://aubio.org/pub/${isim}-${surum}.tar.bz2
  10. 0001-Fix-build-with-FFmpeg-4.0.patch)
  11. derle() {
  12. cp -av "$isim-${surum}" "$isim-1-${surum}"
  13. cp -av "$isim-${surum}" "$isim-2-${surum}"
  14. cd "$isim-2-${surum}"
  15. patch -Np1 -i "../0001-Fix-build-with-FFmpeg-4.0.patch"
  16. # python2 shebang
  17. sed -e '1s/python/&2/' \
  18. -i "python/lib/${isim}/"{__init__,cmd,cut}.py \
  19. -i "python/tests/"*.py
  20. cd "$SRC/${isim}-${surum}"
  21. python2 waf configure --prefix=/usr \
  22. --enable-fftw3 \
  23. --htmldir=/usr/share/doc/${isim} \
  24. --docdir=/usr/share/doc/${isim} \
  25. --libdir=/usr/lib
  26. python2 waf build
  27. cd ../"$isim-1-${surum}"
  28. python setup.py build
  29. cd ../"$isim-2-${surum}"
  30. python2 setup.py build
  31. cd "$SRC/${isim}-${surum}"
  32. python2 waf --destdir="${PKG}" install
  33. # move doc, as waf configure doesn't honor the htmldir and docdir settings
  34. mv -v "${PKG}/usr/share/doc/lib${isim}-doc" \
  35. "${PKG}/usr/share/doc/${isim}"
  36. install -t "${PKG}/usr/share/doc/${isim}/" \
  37. -vDm644 {AUTHORS,ChangeLog,README.md}
  38. }