wok view protobuf/receipt @ rev 24975

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 02 16:22:04 2022 +0000 (2022-05-02)
parents b569b85b0fb9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="protobuf"
4 VERSION="3.11.4"
5 CATEGORY="network"
6 SHORT_DESC="Protocol buffers - Google's data interchange format."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/protocolbuffers/protobuf"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
14 DEPENDS="gcc83-lib-base libatomic"
15 BUILD_DEPENDS="automake gcc83 libtool"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./autogen.sh &&
28 ./configure \
29 CC=gcc-83 \
30 CXX=g++-83 \
31 --prefix=/usr \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }