1. pkgname=mangler
  2. pkgver=20120504
  3. pkgrel=1
  4. pkgdesc="A Ventrilo compatible VOIP client for Linux"
  5. arch=('i686' 'x86_64')
  6. url="https://github.com/haxar/mangler"
  7. license=('GPL3')
  8. depends=('gtkmm' 'gsm' 'speex')
  9. makedepends=('git' 'librsvg')
  10. optdepends=('alsa-lib: ALSA support'
  11. 'oss: OSS support'
  12. 'pulseaudio: PulseAudio support'
  13. 'celt-0.7: CELT codec support'
  14. 'espeak: TTS support'
  15. 'xosd: Information overlay support'
  16. 'dbus-glib: Rhythmbox/Amarok integration')
  17. provides=('mangler')
  18. conflicts=('mangler')
  19. options=(!libtool)
  20.  
  21. _gittrunk=https://github.com/haxar/mangler.git
  22. _gitmod=mangler
  23.  
  24. build() {
  25.  
  26.     if [ -d $_gitmod/.git ]; then
  27.         (cd $_gitmod && git pull)
  28.     else
  29.         git clone $_gittrunk $_gitmod
  30.     fi
  31.  
  32.     msg "GIT clone done or server timeout."
  33.     msg "Starting build..."
  34.  
  35.     rm -rf "$srcdir/$_gitmod-build"
  36.     git clone "$srcdir/$_gitmod" "$srcdir/$_gitmod-build"
  37.     cd $_gitmod-build
  38.     git checkout origin/master
  39.  
  40.     touch configure
  41.     ./configure --prefix=/usr --enable-static=no
  42.     make
  43. }
  44.  
  45. package() {
  46.   cd "$srcdir/$_gitmod-build"
  47.   make DESTDIR="$pkgdir/" install
  48. }