spacepaste

  1.  
  2. # Description: A real-time software synthesizer.
  3. # URL: http://www.fluidsynth.org/
  4. # Maintainer: Joacim Olsen Tangen, hi at joac dot im
  5. # Depends on: cmake glib
  6. name=fluidsynth1
  7. version=1.1.11
  8. release=1
  9. source=(https://github.com/FluidSynth/fluidsynth/archive/v$version/fluidsynth-$version.tar.gz)
  10. build() {
  11. cd fluidsynth-$version
  12. mkdir build
  13. cd build
  14. cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX= -DCMAKE_BUILD_TYPE=Release
  15. sed \
  16. -e 's|lfluidsynth|lfluidsynth1|' \
  17. -e 's|lib64|lib|' \
  18. -e 's|/include|/include/fluidsynth1|' \
  19. -i fluidsynth.pc
  20. make
  21. make DESTDIR=$PKG install
  22. mv $PKG/usr/bin/fluidsynth $PKG/usr/bin/fluidsynth1
  23. rm $PKG/usr/lib/libfluidsynth.so
  24. mv $PKG/usr/lib/pkgconfig/fluidsynth.pc $PKG/usr/lib/pkgconfig/fluidsynth1.pc
  25. mv $PKG/usr/share/man/man1/fluidsynth.1 $PKG/usr/share/man/man1/fluidsynth1.1
  26. mv $PKG/usr/include/fluidsynth $PKG/usr/include/fluidsynth1
  27. mv $PKG/usr/include/fluidsynth.h $PKG/usr/include/fluidsynth1
  28. }
  29.