# Maintainer: Leonardo Arena pkgname=protobuf-c pkgver=1.2.1 pkgrel=1 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 } md5sums="e544249c329391fff512c3874895cfbe protobuf-c-1.2.1.tar.gz" sha256sums="846eb4846f19598affdc349d817a8c4c0c68fd940303e6934725c889f16f00bd protobuf-c-1.2.1.tar.gz" sha512sums="032b82dde333e286a3aff1a621be9e497122d38ce8f337275842a55be083232605387a516cfd4b9a09f8f7caf8817c14e596570352bc6ae495c3a3f15ac00959 protobuf-c-1.2.1.tar.gz"