# Maintainer: Leonardo Arena pkgname=protobuf-c pkgver=1.0.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="3a87e11a18e4b823c82643636674e9e7 protobuf-c-1.0.1.tar.gz" sha256sums="e1b2989684ac51e62f8b7de8739c381717b27c7cf4410c7a7e39b958afd3cd74 protobuf-c-1.0.1.tar.gz" sha512sums="2974e098f8c2f49e6338fcb179cedefdb9651ef1ec53fbd1ce39d4a2778246a65f60fbfc30263d775cf830453e168ff0617a78f042a02660e21315cb57f2231c protobuf-c-1.0.1.tar.gz"