wok-current view protobuf-python/receipt @ rev 25553

Up amd-microcode (2021.Sep.10), intel-microcode (20230214)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 09 14:47:24 2023 +0000 (19 months ago)
parents b569b85b0fb9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="protobuf-python"
4 VERSION="3.11.4"
5 CATEGORY="network"
6 SHORT_DESC="Protocol buffers - Google's data interchange format (python)."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/protocolbuffers/protobuf"
11 SOURCE="protobuf"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
15 DEPENDS="protobuf python"
16 BUILD_DEPENDS="libatomic protobuf-dev python-dev python-setuptools"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src/python
29 python setup.py install --prefix=/usr --root $DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs
36 }