#Maintainer: Dimitris Tzemos #Mandatory pkgname=mumble pkgver=1.2.2 pkgrel=1dj #source=("http://people.salixos.org/djemos/$pkgname/$pkgname-$pkgver.tar.gz" "find_libspeechd.h.patch" "replace_LIBPATH_with_QMAKE_LIBDIR.patch") source=("http://switch.dl.sourceforge.net/project/mumble/Mumble/$pkgver/$pkgname-$pkgver.tar.gz" "find_libspeechd.h.patch" "replace_LIBPATH_with_QMAKE_LIBDIR.patch") #Optional docs=("CHANGES" "INSTALL" "LICENSE" "README" "README.Linux") url=http://mumble.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Mumble (low latency voip client)" "Mumble is the VoIP client for murmur VoIP server." "" "Homepage: http://mumble.sourceforge.net/" ) build() { cd $startdir/src/$pkgname-$pkgver #have to show to mumble where is libspeechd.h patch -p1 < $startdir/src/find_libspeechd.h.patch || return 1 #replace LIBPATH with QMAKE_LIBDIR patch -p1 < $startdir/src/replace_LIBPATH_with_QMAKE_LIBDIR.patch || return 1 qmake main.pro CONFIG+=no-server CONFIG+=no-ice || return 1 make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg || return 1 # create icons mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps || return 1 cp $startdir/src/$pkgname-$pkgver/icons/mumble.osx.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/mumble.png || return 1 mkdir -p $startdir/pkg/usr/share/icons/hicolor/scalable/apps || return 1 cp $startdir/src/$pkgname-$pkgver/icons/mumble.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps || return 1 mkdir -p $startdir/pkg/usr/share/pixmaps || return 1 cp $startdir/src/$pkgname-$pkgver/icons/mumble.xpm $startdir/pkg/usr/share/pixmaps mkdir -p $startdir/pkg/usr/bin || return 1 cp $startdir/src/$pkgname-$pkgver/release/mumbl* $startdir/pkg/usr/bin/ mkdir -p $startdir/pkg/usr/share/applications || return 1 cp $startdir/src/$pkgname-$pkgver/scripts/mumble.desktop $startdir/pkg/usr/share/applications/ || return 1 sed -i "s/Categories=.*/Categories=Application;Network;/" $startdir/pkg/usr/share/applications/mumble.desktop || return 1 sed -i "s/.png//" $startdir/pkg/usr/share/applications/mumble.desktop || return 1 chown -R root:root $startdir/pkg } # Doinst doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi }