#!/bin/sh
#
# Copyright 2026  Sasa Ostrouska <saxa@droplinegnome.org>
# Available under the terms of the GNU GPL.
#

NAME="protobuf-c"
VERSION="1.5.2"
REVISION="1"

PKG_SOURCEURL='https://github.com/${NAME}/${NAME}/releases/download/v${VERSION}/${NAME}-${VERSION}.tar.gz'
PKG_SANIFYNOTOUCH='ups'
PKG_PATCH[0]='protobuf-34-build-fix.patch'

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
cxxflags
prepare

applypatch 0 1

analyzesource
configure
make
makeinstall
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
