0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 05:08:56 +00:00
termux-packages/x11-packages/mumble-server/build.sh
Biswapriyo Nath 12466ed7d8 fix(x11/mumble-server): Fix compiling with latest abseil-cpp
This fixes the following compiler error.

/usr/include/absl/utility/utility.h:82:12: error: no member named 'in_place_t' in namespace 'std'
using std::in_place_t;
      ~~~~~^
2024-07-30 20:22:30 +00:00

41 lines
1.2 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://www.mumble.info/
TERMUX_PKG_DESCRIPTION="Server module for Mumble, an open source voice-chat software"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.5.517
TERMUX_PKG_REVISION=8
TERMUX_PKG_SRCURL=git+https://github.com/mumble-voip/mumble
TERMUX_PKG_DEPENDS="libc++, libcap, libprotobuf, openssl, qt5-qtbase"
TERMUX_PKG_BUILD_DEPENDS="boost, boost-headers, qt5-qtbase-cross-tools"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dclient=OFF
-Dice=OFF
-Doverlay=OFF
-Dwarnings-as-errors=OFF
-Dzeroconf=OFF
"
TERMUX_PKG_RM_AFTER_INSTALL="
etc/systemd
"
termux_step_pre_configure() {
termux_setup_protobuf
LDFLAGS+=" -lcap"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -Dprotobuf_PROTOC_EXE=$(command -v protoc)"
sed -i 's/COMMAND\sprotobuf::protoc/COMMAND ${protobuf_PROTOC_EXE}/g' $TERMUX_PREFIX/lib/cmake/protobuf/protobuf-generate.cmake
}
termux_step_post_make_install() {
ln -sfT mumble-server $TERMUX_PREFIX/bin/murmurd
install -Dm600 -t $TERMUX_PREFIX/share/doc/mumble-server/examples \
$TERMUX_PKG_SRCDIR/auxiliary_files/mumble-server.ini
chmod 0700 $TERMUX_PREFIX/bin/mumble-server-user-wrapper
}
termux_step_post_massage() {
rm -f lib/cmake/protobuf/protobuf-generate.cmake
find . -type d -empty -delete
}