# Maintainer: Leonardo Arena pkgname=protobuf-c pkgver=1.0.0 pkgrel=0 pkgdesc="C bindings for Google's Protocol Buffers" url="https://github.com/protobuf-c/protobuf-c/wiki" arch="all" license="GPL" depends= depends_dev= makedepends="$depends_dev protobuf-dev" install= subpackages="$pkgname-dev" source="https://github.com/protobuf-c/protobuf-c/releases/download/v$pkgver/protobuf-c-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" return 0 } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 # parallel build issue: # https://github.com/protobuf-c/protobuf-c/issues/156 make t/test-full.pb.h && make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install find "$pkgdir" -iname *.la -delete } md5sums="e8485b35bb8c9ff0a89a3df957976fc8 protobuf-c-1.0.0.tar.gz" sha256sums="de453698d693bd1a3842759964d436e66a7afee18f3be1e324b7b74e8c0eaaea protobuf-c-1.0.0.tar.gz" sha512sums="437805ea6416f9dddc207063c7ddc997df351de87ee094cfd30bb605002f2b0ee9def2fbd088e96876ca7c460eb334f8942ed5a8e6cac32c6ef9974f225bc1d4 protobuf-c-1.0.0.tar.gz"