void-packages/srcpkgs/protobuf-c/template
2017-05-02 08:04:47 +00:00

30 lines
922 B
Bash

# Template file for 'protobuf-c'
pkgname=protobuf-c
version=1.2.1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config protobuf"
makedepends="protobuf-devel"
short_desc="C implementation of the Google Protocol Buffers"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="BSD"
homepage="https://github.com/protobuf-c/protobuf-c"
distfiles="$homepage/releases/download/v$version/protobuf-c-$version.tar.gz"
checksum=846eb4846f19598affdc349d817a8c4c0c68fd940303e6934725c889f16f00bd
# buildprocess calls compiler while building, disable it on cross build
build_options="protoc"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="protoc"
fi
configure_args="$(vopt_enable 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"
}
}