Files
horizon-packages/srcpkgs/protobuf-c/template
T

39 lines
1.1 KiB
Bash

# Template file for 'protobuf-c'
pkgname=protobuf-c
version=1.5.2
revision=1
build_style=gnu-configure
configure_args="$(vopt_enable protoc)"
hostmakedepends="pkg-config protobuf protobuf-devel automake libtool"
makedepends="protobuf-devel boost-headers $(vopt_if protoc libprotoc-devel)"
short_desc="C implementation of the Google Protocol Buffers"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/protobuf-c/protobuf-c"
changelog="https://raw.githubusercontent.com/protobuf-c/protobuf-c/refs/heads/master/CHANGELOG.md"
distfiles="${homepage}/releases/download/v${version}/protobuf-c-${version}.tar.gz"
checksum=e2c86271873a79c92b58fef7ebf8de1aa0df4738347a8bd5d4e65a80a16d0d24
build_options="protoc"
build_options_default="protoc"
desc_option_protoc="Build protoc-c compiler"
pre_configure() {
autoreconf -if
}
post_install() {
vlicense LICENSE
}
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"
}
}