void-packages/srcpkgs/protobuf-c/template

31 lines
922 B
Bash
Raw Normal View History

2015-03-13 11:53:26 +01:00
# Template file for 'protobuf-c'
pkgname=protobuf-c
2015-03-16 23:23:14 +01:00
version=1.1.1
2015-03-13 11:53:26 +01:00
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 <gottox@voidlinux.eu>"
2015-03-13 11:53:26 +01:00
license="BSD"
homepage="https://github.com/protobuf-c/protobuf-c"
distfiles="$homepage/releases/download/v$version/protobuf-c-$version.tar.gz"
2015-03-16 23:23:14 +01:00
checksum=09c5bb187b7a8e86bc0ff860f7df86370be9e8661cdb99c1072dcdab0763562c
2015-03-13 11:53:26 +01:00
# 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)"
2015-03-13 11:53:26 +01:00
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"
}
}