Skip to content

Instantly share code, notes, and snippets.

@UndeRus
Last active March 17, 2021 14:41
Show Gist options
  • Save UndeRus/39de05ee6d76fb050b1736bfb2e225a0 to your computer and use it in GitHub Desktop.
Save UndeRus/39de05ee6d76fb050b1736bfb2e225a0 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
rm -fr mumble-build-new
sudo apt-get install build-essential fakeroot devscripts quilt libprotobuf-dev libprotoc-dev libgrpc++-dev protobuf-compiler-grpc -y
sudo apt-get build-dep mumble-server -y
mkdir mumble-build-new
pushd mumble-build-new
apt-get source mumble-server
SRC=`find . -maxdepth 1 -type d -name '*mumble*' -print -quit`
pushd $SRC
echo "Current path $(pwd)"
pushd debian
sed '/CONFIG\*=c++11.*/a \\tCONFIG\*=grpc \\' rules > rules_new
rm rules
mv rules_new rules
popd
debuild -b -uc -us -j3
popd
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment