wok-current view liba53/receipt @ rev 24564

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