wok-current annotate sipsak/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents d443265acbc1
children ed0aff8c6cc0
rev   line source
pascal@1617 1 # SliTaz package receipt.
pascal@1617 2
pascal@1617 3 PACKAGE="sipsak"
Hans-G?nter@21912 4 VERSION="0.9.7"
pascal@1617 5 CATEGORY="network"
pascal@1617 6 SHORT_DESC="SIP swiss army knife."
pascal@1617 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@21912 9 WEB_SITE="https://github.com/nils-ohlmeier/sipsak/"
Hans-G?nter@21912 10
pascal@1617 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21912 12 WGET_URL="${WEB_SITE}archive/$VERSION.tar.gz"
pascal@15000 13
Hans-G?nter@21912 14 DEPENDS="gnutls libcrypto zlib"
pascal@23623 15 BUILD_DEPENDS="libtool libcrypto libcrypto-dev"
pascal@1617 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@1617 23 # Rules to configure and make the package.
pascal@1617 24 compile_rules()
pascal@1617 25 {
Hans-G?nter@21912 26 autoreconf --install &&
Hans-G?nter@21912 27 ./configure \
Hans-G?nter@21912 28 --prefix=/usr \
Hans-G?nter@21912 29 --infodir=/usr/share/info \
Hans-G?nter@21912 30 --mandir=/usr/share/man \
Hans-G?nter@21912 31 $CONFIGURE_ARGS &&
pascal@1617 32 make &&
pascal@15000 33 make DESTDIR=$DESTDIR install
pascal@1617 34 }
pascal@1617 35
pascal@1617 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1617 37 genpkg_rules()
pascal@1617 38 {
pascal@1617 39 mkdir -p $fs/usr
pascal@15000 40 cp -a $install/usr/bin $fs/usr
pascal@1617 41 }