desktop/mumble/PKGBUILD

58 lines
2.3 KiB
Bash
Raw Normal View History

2010-10-09 05:38:50 +08:00
#
2011-05-30 01:39:23 +08:00
# <Repo> Packages for Chakra, part of chakra-project.org
2010-10-09 05:38:50 +08:00
#
# Maintainer: Michael Haesel <michael[dot]haesel[at]gmail[dot]com>
2010-10-09 05:38:50 +08:00
pkgname=mumble
2013-06-02 19:57:06 +08:00
pkgver=1.2.4
pkgrel=1
arch=('x86_64')
2011-05-30 01:39:23 +08:00
pkgdesc="A voice chat application similar to TeamSpeak."
license=('GPL')
2011-05-30 01:39:23 +08:00
depends=('qt' 'speex' 'lsb-release' 'libxi' 'avahi' 'libsndfile' 'protobuf' 'libpulse')
2010-10-09 05:38:50 +08:00
makedepends=('boost' 'mesa' 'avahi')
options=('!libtool')
categories=('communication')
2010-10-09 05:38:50 +08:00
url="http://mumble.sourceforge.net/"
screenshot="http://mumble.sourceforge.net/static/Mumble%20--%201.2.3.png"
2013-06-02 19:57:06 +08:00
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname^}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('a1cf8383d99a02719b16c5440e3a5fb5375a8aa060f203bfa5d25bc69f919c9b')
2010-10-09 05:38:50 +08:00
build() {
2012-09-07 13:39:22 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2010-10-09 05:38:50 +08:00
# Building mumble
/usr/bin/qmake main.pro \
2011-05-30 01:39:23 +08:00
CONFIG+="bundled-celt no-bundled-speex no-speechd no-g15 no-xevie no-server no-embed-qt-translations packaged" \
DEFINES+="PLUGIN_PATH=/usr/lib/mumble"
make release
2010-10-09 05:38:50 +08:00
}
package() {
2012-09-07 13:39:22 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2010-10-09 05:38:50 +08:00
2011-05-30 01:39:23 +08:00
# bin stuff
2012-09-07 13:39:22 +08:00
install -m755 -D ./release/mumble "${pkgdir}/usr/bin/mumble"
install -m755 -D ./scripts/mumble-overlay "${pkgdir}/usr/bin/mumble-overlay"
2011-05-30 01:39:23 +08:00
# lib stuff
2012-09-07 13:39:22 +08:00
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"
2011-05-30 01:39:23 +08:00
2012-09-07 13:39:22 +08:00
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/"
2011-05-30 01:39:23 +08:00
# other stuff
2012-09-07 13:39:22 +08:00
install -m644 -D ./scripts/mumble.desktop "${pkgdir}/usr/share/applications/mumble.desktop"
2013-06-02 19:57:06 +08:00
install -m644 -D ./scripts/mumble.protocol "${pkgdir}/usr/share/kde4/services/mumble.protocol"
2012-09-07 13:39:22 +08:00
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"
2010-10-09 05:38:50 +08:00
2011-05-30 01:39:23 +08:00
# License.
install -m644 -D "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2011-05-30 01:39:23 +08:00
}