# $Id: PKGBUILD 113189 2014-06-15 21:52:27Z svenstaro $ # Maintainer: Sven-Hendrik Haase # Contributor: Lauri Niskanen # Contributor: Sebastian.Salich@gmx.de # Contributor: Doc Angelo # If you want support for your G15 Keyboard, please add 'g15daemon' # to the depends and delete "no-g15" in the configure line below pkgname=mumble pkgver=1.2.7 pkgrel=1 arch=('i686' 'x86_64') pkgdesc="A voice chat application similar to TeamSpeak" license=('BSD') depends=('qt4' 'speex' 'lsb-release' 'libxi' 'avahi' 'libsndfile' 'protobuf' 'libpulse' 'opus') makedepends=('boost' 'mesa') #optdepends=('portaudio: for portaudio back-end' 'g15daemon: G15 Keyboard support') install=mumble.install url="http://mumble.sourceforge.net/" source=("http://downloads.sourceforge.net/mumble/$pkgname-$pkgver.tar.gz" "gcc49.patch::https://github.com/mumble-voip/mumble/commit/349436284b5f1baa61836c98ff0d518392140c5d.patch") md5sums=('7f87f57859902b0ea8385a49f34d126d' 'ca344e0c4a33f1cbff2de94c60112a45') prepare() { cd $srcdir/$pkgname-$pkgver patch -Np1 < $srcdir/gcc49.patch } build() { cd $srcdir/$pkgname-$pkgver # Building mumble qmake-qt4 main.pro \ CONFIG+="bundled-celt no-bundled-opus no-bundled-speex no-speechd no-g15 no-xevie no-server \ no-embed-qt-translations no-update packaged" \ DEFINES+="PLUGIN_PATH=/usr/lib/mumble" make release } package() { cd $srcdir/$pkgname-$pkgver # bin stuff install -m755 -D ./release/mumble $pkgdir/usr/bin/mumble install -m755 -D ./scripts/mumble-overlay $pkgdir/usr/bin/mumble-overlay # lib stuff install -m755 -D ./release/libmumble.so.$pkgver $pkgdir/usr/lib/mumble/libmumble.so.$pkgver ln -s libmumble.so.$pkgver $pkgdir/usr/lib/mumble/libmumble.so ln -s libmumble.so.$pkgver $pkgdir/usr/lib/mumble/libmumble.so.1 ln -s libmumble.so.$pkgver $pkgdir/usr/lib/mumble/libmumble.so.1.2 install -m755 -D ./release/plugins/liblink.so $pkgdir/usr/lib/mumble/liblink.so install -m755 -D ./release/plugins/libmanual.so $pkgdir/usr/lib/mumble/libmanual.so install -m755 -D ./release/libcelt* $pkgdir/usr/lib/mumble/ # other stuff install -m644 -D ./scripts/mumble.desktop $pkgdir/usr/share/applications/mumble.desktop install -m755 -d $pkgdir/usr/share/man/man1 install -m644 -D ./man/mum* $pkgdir/usr/share/man/man1/ install -m644 -D ./icons/mumble.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/mumble.svg install -m644 -D ./LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } # vim: sw=2:ts=2 et: