# Maintainer: Leonardo Arena pkgname=protobuf-c pkgver=1.1.1 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="41d437677ea16f9d3611d98841c4af3b protobuf-c-1.1.1.tar.gz" sha256sums="09c5bb187b7a8e86bc0ff860f7df86370be9e8661cdb99c1072dcdab0763562c protobuf-c-1.1.1.tar.gz" sha512sums="9eeb3165ca53c57091503866e2600d675e03d79c22dbd41bd3c4ebf8e569ed147f0b832e8b68dcdaece2f151798e7e0589fdf975e9a04fae9904991e89ea0465 protobuf-c-1.1.1.tar.gz"