wok view rrdtool/receipt @ rev 24974

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 02 11:23:24 2022 +0000 (2022-05-02)
parents 615a666d7811
children b81ceff0b056
line source
1 # SliTaz package receipt.
3 PACKAGE="rrdtool"
4 VERSION="1.7.2"
5 CATEGORY="misc"
6 TAGS="logs"
7 SHORT_DESC="Data logging and graphing system for time series data."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://oss.oetiker.ch/rrdtool/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}pub/$TARBALL"
15 DEPENDS="cairo fontconfig freetype glib libpng libwrap libxml2 pango pixman
16 xcb-util xorg-base-fonts zlib"
17 BUILD_DEPENDS="cairo-dev fontconfig-dev freetype-dev glib-dev groff
18 libpng-dev libwrap-dev libxml2-dev lua-dev pango-dev perl pixman-dev
19 pkg-config python-dev python-setuptools ruby tcl-dev zlib-dev"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/*} 2>/dev/null | \
25 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lz"
33 ./configure \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --enable-perl-site-install \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 # librrd_th.so has gone since librrd.so is thread safe
50 ln -s librrd.so $fs/usr/lib/librrd_th.so
51 cp -a $install/usr/bin $fs/usr
52 }