# Maintainer: Leonardo Arena pkgname=protobuf-c pkgver=1.1.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="884a6e7deb4a2f7b3cc81a4dcabe514a protobuf-c-1.1.0.tar.gz" sha256sums="9a973fc04aac003f9cf2b5a90ac4b8fa294cacb4e3f0796d3b5a789a5ad46c07 protobuf-c-1.1.0.tar.gz" sha512sums="50e0a9df1152e468c1bda88f67836fbe88e1ad711b3e6517265cdf715d89c2e15e7fb48c46ad4e163c978e54c899712e7a6e5e9b8bf7145cfdbc04947e0dcb34 protobuf-c-1.1.0.tar.gz"