SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "protobuf-python"

# SliTaz package receipt.

PACKAGE="protobuf-python"
VERSION="3.11.4"
CATEGORY="network"
SHORT_DESC="Protocol buffers - Google's data interchange format (python)."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="BSD"
WEB_SITE="https://github.com/protocolbuffers/protobuf"

SOURCE="protobuf"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="protobuf python"
BUILD_DEPENDS="libatomic protobuf-dev python-dev python-setuptools"

# 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()
{
    cd $src/python
    python setup.py install --prefix=/usr --root $DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)