wok view liblognorm/receipt @ rev 25106

linux-libre: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 22 14:39:56 2022 +0000 (2022-06-22)
parents ede1d184d5c5
children
line source
1 # SliTaz package receipt.
3 PACKAGE="liblognorm"
4 VERSION="0.3.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="A log normalization library."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.liblognorm.com/download/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://www.liblognorm.com/files/download/$TARBALL"
13 DEPENDS="libee libestr"
14 BUILD_DEPENDS="libestr-dev libee-dev automake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 patch -p 1 < $stuff/liblognorm-build-fix.patch
28 ./configure $CONFIGURE_ARGS && make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
38 }