wok-6.x view faad2/receipt @ rev 24491
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 22:59:06 2022 +0000 (2022-02-18) |
parents | f96e26cdfd7a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="faad2"
4 VERSION="2.7"
5 CATEGORY="multimedia"
6 SHORT_DESC="FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder."
7 MAINTAINER="slitaz@kacper.se"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/knik0/faad2"
11 WGET_URL="$SF_MIRROR/faac/$TARBALL"
12 TAGS="decoder mp4 mpeg"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/releases 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;s|_|.|g;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make && make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib $fs/usr/bin
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 }