wok annotate 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
rev   line source
erjo@11417 1 # SliTaz package receipt.
erjo@11417 2
erjo@11417 3 PACKAGE="libesmtp"
erjo@11417 4 VERSION="1.0.6"
erjo@11417 5 CATEGORY="network"
erjo@11417 6 SHORT_DESC="A Library for Posting Electronic Mai"
slaxemulator@11423 7 MAINTAINER="erjo@slitaz.org"
pascal@14714 8 LICENSE="GPL2"
pascal@22632 9 WEB_SITE="http://freecode.com/projects/libesmtp/"
erjo@11417 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@11417 11 WGET_URL="http://www.stafford.uklinux.net/libesmtp/$TARBALL"
erjo@11417 12
erjo@11417 13 DEPENDS="libltdl libssl"
erjo@11417 14 BUILD_DEPENDS="openssl-dev"
erjo@11417 15
pascal@24540 16 # What is the latest version available today?
pascal@24540 17 current_version()
pascal@24540 18 {
pascal@24540 19 wget -O - https://github.com/libesmtp/libESMTP/releases 2>/dev/null | \
pascal@24540 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24540 21 }
pascal@24540 22
erjo@11417 23 # Rules to configure and make the package.
erjo@11417 24 compile_rules()
erjo@11417 25 {
slaxemulator@11423 26 cd $src
erjo@11417 27 ./configure $CONFIGURE_ARGS && make && make install
erjo@11417 28 }
erjo@11417 29
erjo@11417 30 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11417 31 genpkg_rules()
erjo@11417 32 {
erjo@11417 33 mkdir -p $fs/usr
erjo@11417 34 cp -a $install/usr/lib $fs/usr
erjo@11417 35
erjo@11417 36 find $fs -name "*.*a" -exec rm -f {} \;
erjo@11417 37 }