void-packages/srcpkgs/protobuf/template

41 lines
1.1 KiB
Bash
Raw Normal View History

# Template file for 'protobuf'
pkgname=protobuf
version=2.6.1
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="zlib-devel"
short_desc="Google's data interchange format"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2015-03-06 13:22:04 +00:00
distfiles="https://github.com/google/protobuf/releases/download/v${version}/protobuf-${version}.tar.bz2"
homepage="https://developers.google.com/protocol-buffers/"
license="BSD"
checksum=ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910
2014-04-10 15:15:43 +00:00
if [ "$CROSS_BUILD" ]; then
# needs host protoc
hostmakedepends+=" protobuf"
2014-04-10 15:15:43 +00:00
configure_args+=" --with-protoc=/usr/bin/protoc"
fi
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
2014-04-10 15:15:43 +00:00
}
protobuf-devel_package() {
2014-02-17 16:30:58 +00:00
depends="zlib-devel protobuf>=${version}_${revision} protobuf-lite>=${version}_${revision}"
short_desc="Google's data interchange format - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
2014-02-17 16:30:58 +00:00
vmove "usr/lib/*.so"
}
}
protobuf-lite_package() {
short_desc="Google's data interchange format - Lite version"
pkg_install() {
2014-02-17 16:30:58 +00:00
vmove "usr/lib/libprotobuf-lite.so.*"
}
}