1. # Contributor: Daniele Paolella <danielepaolella@email.it>
  2. # Contributor: Ray Rashif <schivmeister@gmail.com>
  3.  
  4. pkgname=fst-git
  5. pkgver=20120701
  6. pkgrel=1
  7. pkgdesc="FreeST: Standalone wrapper for Windows VST plug-ins"
  8. arch=('x86_64')
  9. url="http://www.joebutton.co.uk/fst/"
  10. license=('GPL')
  11. depends=('wine' 'jack2-multilib' 'lib32-libcanberra' 'lib32-mpg123' 'lib32-gtk-engines')
  12. makedepends=('git' 'binutils-multilib' 'gcc-multilib' 'libtool-multilib')
  13. provides=('fst')
  14. conflicts=('fst')
  15. install=fst-git.install
  16. source=()
  17. md5sums=()
  18.  
  19. _gitroot="git://repo.or.cz/fst.git"
  20. _gitname="fst"
  21.  
  22. build() {
  23.   cd "$srcdir"
  24.   msg "Connecting to GIT server...."
  25.  
  26.   if [ -d $_gitname ] ; then
  27.     (cd $_gitname && git pull origin)
  28.     msg "The local files are updated."
  29.   else
  30.     git clone $_gitroot
  31.   fi
  32.  
  33.   msg "GIT checkout done or server timeout"
  34.   msg "Starting make..."
  35.  
  36.   cd $_gitname
  37.   msg "Compiling..."
  38.   make LASH_EXISTS=no || return 1
  39.  
  40.   # executable
  41.   install -Dm755 fst.exe "$pkgdir/usr/bin/fst"
  42.  
  43.   # libraries
  44.   mkdir -p "$pkgdir/usr/lib/fst"
  45.   install -m644 *.o "$pkgdir/usr/lib/fst/"
  46.   install -m755 fst.exe.so "$pkgdir/usr/lib/libfst.so"
  47.  
  48.   # header
  49.   install -Dm644 fst.h "$pkgdir/usr/include/fst.h"
  50. }