From 1ef8624ab434116b6f7e32fedab5989c11537ddd Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 13 Mar 2015 11:53:26 +0100 Subject: [PATCH] New package: protobuf-c-1.1.0 --- common/shlibs | 1 + srcpkgs/protobuf-c-devel | 1 + srcpkgs/protobuf-c/template | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 120000 srcpkgs/protobuf-c-devel create mode 100644 srcpkgs/protobuf-c/template diff --git a/common/shlibs b/common/shlibs index bbfa3b0ac98..51d9891c04a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1949,3 +1949,4 @@ libsndio.so.6.0 sndio-0.0.8.20150308_1 libopenconnect.so.5 openconnect-7.05_1 libusbredirparser.so.1 usbredir-0.7_1 libusbredirhost.so.1 usbredir-0.7_1 +libprotobuf-c.so.1 protobuf-c-1.1.0_1 diff --git a/srcpkgs/protobuf-c-devel b/srcpkgs/protobuf-c-devel new file mode 120000 index 00000000000..394908a2d4d --- /dev/null +++ b/srcpkgs/protobuf-c-devel @@ -0,0 +1 @@ +protobuf-c \ No newline at end of file diff --git a/srcpkgs/protobuf-c/template b/srcpkgs/protobuf-c/template new file mode 100644 index 00000000000..9936d82672c --- /dev/null +++ b/srcpkgs/protobuf-c/template @@ -0,0 +1,26 @@ +# Template file for 'protobuf-c' +pkgname=protobuf-c +version=1.1.0 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config protobuf" +makedepends="protobuf-devel" +short_desc="C implementation of the Google Protocol Buffers" +maintainer="Enno Boland " +license="BSD" +homepage="https://github.com/protobuf-c/protobuf-c" +distfiles="$homepage/releases/download/v$version/protobuf-c-$version.tar.gz" +checksum=9a973fc04aac003f9cf2b5a90ac4b8fa294cacb4e3f0796d3b5a789a5ad46c07 +# buildprocess calls compiler while building, disable it on cross build +[ "$CROSS_BUILD" ] && configure_args+=" --disable-protoc" + +protobuf-c-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}