wok-current view protobuf-python/receipt @ rev 25731
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:28:03 2024 +0000 (2 months ago) |
parents | e717a4953b0e |
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 HOST_ARCH="i486 x86_64"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd $src/python
31 python setup.py install --prefix=/usr --root $DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/* $fs
38 }