wok-6.x annotate osip/receipt @ rev 24336
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 18:19:21 2022 +0000 (2022-01-28) |
parents | ce9f5bda85ac |
children | 508bfd297019 |
rev | line source |
---|---|
pascal@5761 | 1 # SliTaz package receipt. |
pascal@5761 | 2 |
pascal@5761 | 3 PACKAGE="osip" |
Hans-G?nter@23268 | 4 VERSION="5.1.1" |
pascal@5761 | 5 CATEGORY="network" |
pascal@5761 | 6 SHORT_DESC="SIP library." |
pascal@5761 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15022 | 8 LICENSE="LGPL" |
Hans-G?nter@21646 | 9 WEB_SITE="https://www.gnu.org/software/osip/" |
Hans-G?nter@21646 | 10 |
pascal@5761 | 11 SOURCE="libosip2" |
pascal@5761 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@5761 | 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@5761 | 14 |
pascal@24336 | 15 # What is the latest version available today? |
pascal@24336 | 16 current_version() |
pascal@24336 | 17 { |
pascal@24336 | 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 19 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 20 } |
pascal@24336 | 21 |
pascal@5761 | 22 # Rules to configure and make the package. |
pascal@5761 | 23 compile_rules() |
pascal@5761 | 24 { |
Hans-G?nter@21646 | 25 ./configure \ |
Hans-G?nter@21646 | 26 --prefix=/usr \ |
Hans-G?nter@21646 | 27 --infodir=/usr/share/info \ |
Hans-G?nter@21646 | 28 --mandir=/usr/share/man \ |
Hans-G?nter@21646 | 29 $CONFIGURE_ARGS && |
pascal@5761 | 30 make && |
pascal@15022 | 31 make DESTDIR=$DESTDIR install |
pascal@5761 | 32 } |
pascal@5761 | 33 |
pascal@5761 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5761 | 35 genpkg_rules() |
pascal@5761 | 36 { |
pascal@5761 | 37 mkdir -p $fs/usr/lib |
pascal@15022 | 38 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@5761 | 39 } |