# SliTaz package receipt. PACKAGE="protobuf" VERSION="3.11.4" CATEGORY="network" SHORT_DESC="Protocol buffers - Google's data interchange format." MAINTAINER="pankso@slitaz.org" LICENSE="BSD" WEB_SITE="https://github.com/protocolbuffers/protobuf" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" DEPENDS="gcc83-lib-base libatomic" BUILD_DEPENDS="automake gcc83 libtool" # What is the latest version available today? current_version() { wget -O - $WEB_SITE/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh && ./configure \ CC=gcc-83 \ CXX=g++-83 \ --prefix=/usr \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib }