diff --git a/srcpkgs/protobuf-devel b/srcpkgs/protobuf-devel new file mode 120000 index 00000000000..779a5a300bc --- /dev/null +++ b/srcpkgs/protobuf-devel @@ -0,0 +1 @@ +protobuf \ No newline at end of file diff --git a/srcpkgs/protobuf-lite b/srcpkgs/protobuf-lite new file mode 120000 index 00000000000..779a5a300bc --- /dev/null +++ b/srcpkgs/protobuf-lite @@ -0,0 +1 @@ +protobuf \ No newline at end of file diff --git a/srcpkgs/protobuf/protobuf-devel.template b/srcpkgs/protobuf/protobuf-devel.template new file mode 100644 index 00000000000..7070f807ccd --- /dev/null +++ b/srcpkgs/protobuf/protobuf-devel.template @@ -0,0 +1,19 @@ +# Template file for 'protobuf-devel'. +# +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run protobuf +Add_dependency run protobuf-lite +Add_dependency run zlib--devel + +do_install() +{ + vmkdir usr/include + vmkdir usr/lib + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib + vmove "usr/lib/*.a" usr/lib +} diff --git a/srcpkgs/protobuf/protobuf-lite.template b/srcpkgs/protobuf/protobuf-lite.template new file mode 100644 index 00000000000..a72b9f8adc4 --- /dev/null +++ b/srcpkgs/protobuf/protobuf-lite.template @@ -0,0 +1,17 @@ +# Template file for 'protobuf-lite'. +# +short_desc="${short_desc} - Lite version" +long_desc="${long_desc} + + This package contains the Lite version." + +Add_dependency run glibc +Add_dependency run libstdc++ +Add_dependency run libgcc +Add_dependency run zlib + +do_install() +{ + vmkdir usr/lib + vmove "usr/lib/libprotobuf-lite.so*" usr/lib +} diff --git a/srcpkgs/protobuf/template b/srcpkgs/protobuf/template new file mode 100644 index 00000000000..86be8dbb8b2 --- /dev/null +++ b/srcpkgs/protobuf/template @@ -0,0 +1,25 @@ +# Template file for 'protobuf' +pkgname=protobuf +version=2.4.1 +distfiles="http://${pkgname}.googlecode.com/files/${pkgname}-${version}.tar.bz2" +build_style=gnu-configure +homepage="http://code.google.com/p/${pkgname}/" +license="Apache-style" +short_desc="Google's data interchange format" +maintainer="davehome " +checksum=cf8452347330834bbf9c65c2e68b5562ba10c95fa40d4f7ec0d2cb332674b0bf +long_desc=" + Protocol Buffers are a way of encoding structured data in an efficient yet + extensible format. Google uses Protocol Buffers for almost all of its + internal RPC protocols and file formats." + +subpackages="$pkgname-devel $pkgname-lite" + +Add_dependency run glibc +Add_dependency run libstdc++ +Add_dependency run libgcc +Add_dependency run zlib + +Add_dependency build libstdc++-devel +Add_dependency build zlib-devel +Add_dependency build pkg-config diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index e49c49982b7..8da6019cf27 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -937,3 +937,6 @@ liblilv-0.so.0 liblilv lilv-devel libsuil-0.so.0 suil suil-devel libportaudio.so.2 portaudio portaudio-devel libportaudiocpp.so.0 portaudiocpp portaudiocpp-devel +libprotoc.so.7 protobuf protobuf-devel +libprotobuf.so.7 protobuf protobuf-devel +libprotobuf-lite.so.7 protobuf-lite protobuf-devel