void-packages/srcpkgs/protobuf/template

42 lines
1.1 KiB
Plaintext
Raw Normal View History

# Template file for 'protobuf'
pkgname=protobuf
version=2.5.0
revision=4
build_style=gnu-configure
2014-04-10 17:15:43 +02:00
hostmakedepends="libtool pkg-config"
makedepends="zlib-devel"
short_desc="Google's data interchange format"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="http://${pkgname}.googlecode.com/files/${pkgname}-${version}.tar.bz2"
homepage="http://code.google.com/p/${pkgname}/"
license="BSD"
checksum=13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677
2014-04-10 17:15:43 +02:00
if [ "$CROSS_BUILD" ]; then
# needs host protoc
hostmakedepends+=" protobuf"
configure_args+=" --with-protoc=/usr/bin/protoc"
fi
pre_configure() {
libtoolize -f
}
protobuf-devel_package() {
2014-02-17 17:30:58 +01: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 17:30:58 +01:00
vmove "usr/lib/*.so"
}
}
protobuf-lite_package() {
short_desc="Google's data interchange format - Lite version"
pkg_install() {
2014-02-17 17:30:58 +01:00
vmove "usr/lib/libprotobuf-lite.so.*"
}
}