wok-current view libmad/receipt @ rev 24071

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 10:35:01 2021 +0000 (2021-07-07)
parents d7effc007afd
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libmad"
4 VERSION="0.15.1b"
5 CATEGORY="multimedia"
6 SHORT_DESC="MAD is a high-quality MPEG audio decoder."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.underbit.com/products/mad/"
11 WGET_URL="$SF_MIRROR/mad/$TARBALL"
12 HOST_ARCH="i486 arm"
14 current_version()
15 {
16 wget -O - https://sourceforge.net/projects/mad/files/libmad/ 2>/dev/null | \
17 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
18 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i '/-fforce-mem/d' ./configure
25 ./configure --prefix=/usr $CONFIGURE_ARGS &&
26 make && make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib
33 cp -a $install/usr/lib/*.so* $fs/usr/lib
34 }