wok annotate liba53/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 c54f9ed61f3b
children 080c773b0353
rev   line source
pascal@16791 1 # SliTaz package receipt.
pascal@16791 2
pascal@16791 3 PACKAGE="liba53"
pascal@16791 4 VERSION="0.1"
pascal@16791 5 CATEGORY="misc"
pascal@16791 6 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16791 7 LICENSE="GPL2"
pascal@16791 8 SHORT_DESC="The A5/3 library"
pascal@16791 9 WEB_SITE="http://www.rangenetworks.com/"
pascal@16791 10 OBVERSION="4.0.0"
pascal@16791 11 TARBALL="openbts-$OBVERSION.zip"
pascal@16791 12 WGET_URL="https://github.com/RangeNetworks/dev/releases/download/v$OBVERSION/v$OBVERSION-source.zip"
pascal@16791 13
pascal@16791 14 DEPENDS=""
pascal@16791 15 BUILD_DEPENDS="wget pkg-config"
pascal@16791 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@16791 23 # Rules to configure and make the package.
pascal@16791 24 compile_rules()
pascal@16791 25 {
pascal@16791 26 tar xzf liba53_$VERSION.tar.gz
pascal@16791 27 cd liba53*
pascal@16791 28 mkdir -p $DESTDIR/usr/lib $DESTDIR/usr/include
pascal@16791 29 make &&
pascal@16791 30 make DESTDIR=$DESTDIR install
pascal@16791 31 }
pascal@16791 32
pascal@16791 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16791 34 genpkg_rules()
pascal@16791 35 {
pascal@16791 36 cp -a $install/usr $fs/
pascal@16791 37 }