wok view opencore-amr/receipt @ rev 24396
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 12:15:27 2022 +0000 (2022-02-08) |
parents | c84ff7af1e21 |
children | e171b422f9e7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="opencore-amr"
4 VERSION="0.1.5"
5 CATEGORY="multimedia"
6 SHORT_DESC="Adaptive Multi Rate (AMR) speech codec."
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://opencore-amr.sourceforge.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/opencore-amr/files/opencore-amr/ 2>/dev/null | \
21 sed '/scope="row/!d;/tar/!d;s|.*/opencore-amr-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix="/usr" \
29 --disable-static \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }