wok-current annotate exosip/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents 44d55cb24c23
children 237fb52f1080
rev   line source
pascal@5762 1 # SliTaz package receipt.
pascal@5762 2
pascal@5762 3 PACKAGE="exosip"
pascal@21653 4 VERSION="5.1.0"
pascal@5762 5 CATEGORY="network"
pascal@5762 6 SHORT_DESC="extended SIP library."
pascal@5762 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@21653 9 SOURCE="libexosip2"
pascal@5762 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@5762 11 WEB_SITE="http://savannah.nongnu.org/projects/exosip/"
pascal@12629 12 WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
pascal@5762 13 DEPENDS="osip openssl"
pascal@5762 14 BUILD_DEPENDS="osip-dev openssl-dev"
pascal@5762 15
pascal@24415 16 # What is the latest version available today?
pascal@24415 17 current_version()
pascal@24415 18 {
pascal@24415 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24415 20 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24415 21 }
pascal@24415 22
pascal@5762 23 # Rules to configure and make the package.
pascal@5762 24 compile_rules()
pascal@5762 25 {
pascal@5762 26 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@5762 27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@5762 28 make &&
pascal@12622 29 make DESTDIR=$DESTDIR install
pascal@5762 30 }
pascal@5762 31
pascal@5762 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5762 33 genpkg_rules()
pascal@5762 34 {
pascal@5762 35 mkdir -p $fs/usr/lib
pascal@15000 36 cp -a $install/usr/bin $fs/usr
pascal@15000 37 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@5762 38 }