This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD for mumble-git with celt 0.11

By: a guest on Feb 11th, 2011  |  syntax: Bash  |  size: 2.65 KB  |  views: 375  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=mumble-git
  2. pkgver=20110211
  3. pkgrel=1
  4. pkgdesc="A voice chat application similar to TeamSpeak"
  5. arch=('i686' 'x86_64')
  6. url="http://mumble.sourceforge.net/"
  7. license=('GPL')
  8. depends=('alsa-lib' 'qt>=4.4.0' 'speex>=1.2rc1' 'celt>=0.7.0' 'lsb-release' 'protobuf')
  9. makedepends=('git' 'boost' 'avahi' 'libxi' 'mesa')
  10. optdepends=('pulseaudio: for using mumble with pulseaudio')
  11. provides=('mumble')
  12. conflicts=('mumble')
  13. options=('!libtool')
  14. install=mumble.install
  15. source=(mumble11x.desktop)
  16. md5sums=('b85a15a46a8d0e9a28e87ff6678bb36a')
  17.  
  18. _gitroot="git://mumble.git.sourceforge.net/gitroot/mumble/mumble"
  19. _gitname="mumble"
  20.  
  21. build() {
  22.   cd "$srcdir"
  23.   msg "Connecting to GIT server...."
  24.  
  25.   if [ -d $_gitname ] ; then
  26.     cd $_gitname && git pull origin
  27.     msg "The local files are updated."
  28.   else
  29.     git clone $_gitroot
  30.   fi
  31.  
  32.   msg "GIT checkout done or server timeout"
  33.   msg "Starting make..."
  34.  
  35.   rm -rf "$srcdir/$_gitname-build"
  36.   git clone --depth 1 "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  37.   cd "$srcdir/$_gitname-build"
  38.  
  39.   # BUILD
  40.  
  41.   qmake main.pro \
  42.   CONFIG+="no-bundled-speex no-bundled-celt no-speechd no-g15 no-xevie \
  43.    no-server no-embed-qt-translations packaged" \
  44.     DEFINES+="PLUGIN_PATH=/usr/lib/mumble/plugins"
  45.   sed -i 's/CELT_SET_VBR_RATE/CELT_SET_BITRATE/g' src/mumble/AudioInput.cpp
  46.   make
  47. }
  48.  
  49. package() {
  50.   cd "$srcdir/$_gitname-build"
  51.  
  52.   install -m755 -D $srcdir/$_gitname-build/release/mumble $pkgdir/usr/bin/mumble
  53.   install -m755 -D $srcdir/$_gitname-build/release/mumble11x $pkgdir/usr/bin/mumble11x
  54.   install -m755 -D $srcdir/$_gitname-build/scripts/mumble-overlay $pkgdir/usr/bin/mumble-overlay
  55.   install -m755 -d $pkgdir/usr/lib/mumble/plugins
  56.   install -m755 -D $srcdir/$_gitname-build/release/libmumble.so.1.2.3 $pkgdir/usr/lib/mumble/
  57.   ln -s libmumble.so.1.2.3 $pkgdir/usr/lib/mumble/libmumble.so
  58.   ln -s libmumble.so.1.2.3 $pkgdir/usr/lib/mumble/libmumble.so.1
  59.   ln -s libmumble.so.1.2.3 $pkgdir/usr/lib/mumble/libmumble.so.1.2
  60.   install -m755 -D $srcdir/$_gitname-build/release/mumble $pkgdir/usr/bin/mumble
  61.   install -m755 -D $srcdir/$_gitname-build/release/plugins/liblink.so $pkgdir/usr/lib/mumble/plugins/
  62.   install -m755 -d $pkgdir/usr/share/applications
  63.   install -m644 -D $srcdir/$_gitname-build/scripts/mumble.desktop $pkgdir/usr/share/applications/mumble.desktop
  64.   install -m644 -D $srcdir/mumble11x.desktop $pkgdir/usr/share/applications/mumble11x.desktop
  65.   install -m755 -d $pkgdir/usr/share/man/man1
  66.   install -m644 -D $srcdir/$_gitname-build/man/mum* $pkgdir/usr/share/man/man1/
  67.   install -m644 -D $srcdir/$_gitname-build/icons/mumble.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/mumble.svg
  68. }
clone this paste RAW Paste Data