wok view libdnet/receipt @ rev 24308

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 18:18:17 2022 +0000 (2022-01-17)
parents eeba7ab1dffe
children b072bd03c2c6
line source
1 # SliTaz package receipt.
3 PACKAGE="libdnet"
4 VERSION="1.12"
5 CATEGORY="network"
6 SHORT_DESC="A simplified, portable interface to serveral low-level networking routines"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="https://github.com/dugsong/libdnet"
11 WGET_URL="http://libdnet.googlecode.com/files/$TARBALL"
13 DEPENDS="python"
14 BUILD_DEPENDS="python python-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make && make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/lib/libdnet $fs/usr/lib
41 cp -a $install/usr/lib/*.1* $fs/usr/lib
42 }