description="Google's data interchange format utility (python API)."
url="http://code.google.com/p/protobuf/"

packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

makedepends=(python2-setuptools)

name=protobuf
version=3.9.1

PKGMK_KEEP_SOURCES=no

source=(https://github.com/protocolbuffers/protobuf/archive/v$version.tar.gz)
build () 
{ 
cd ${name}-$version
./autogen.sh
./configure --prefix=/usr --disable-static
make DESTDIR=$PKG install

# Obsolets libs
rm $PKG/usr/lib/libproto{buf,buf-lite,c}.la
}
