wok view libesmtp/receipt @ rev 24540

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 16:54:57 2022 +0000 (2022-02-23)
parents 53c1379e13fa
children 0c6152afb7bb
line source
1 # SliTaz package receipt.
3 PACKAGE="libesmtp"
4 VERSION="1.0.6"
5 CATEGORY="network"
6 SHORT_DESC="A Library for Posting Electronic Mai"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://freecode.com/projects/libesmtp/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://www.stafford.uklinux.net/libesmtp/$TARBALL"
13 DEPENDS="libltdl libssl"
14 BUILD_DEPENDS="openssl-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/libesmtp/libESMTP/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ./configure $CONFIGURE_ARGS && make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $install/usr/lib $fs/usr
36 find $fs -name "*.*a" -exec rm -f {} \;
37 }