set -ex

basename=protobuf-2.6.0
tarball=$basename.tar.bz2

wget https://protobuf.googlecode.com/svn/rc/$tarball
tar -xvf $tarball
cd $basename && ./configure --prefix=/usr && make && make install

#!/usr/bin/env sh

set -ex

version=2.6.1
basename=protobuf-$version

curl -sL https://github.com/google/protobuf/releases/download/v$version/$basename.tar.bz2 | tar jx

cd $basename && ./configure --prefix=/usr && make && make install

Update `protobuf` to 2.6.1 and simplify the install
Update `protobuf` to 2.6.1 and simplify the install
