wok view mp3gain/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | ccd227dcb249 |
children | 56e6b4e63668 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mp3gain"
4 VERSION="1.6.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Analyzes and adjusts volume on mp3 files."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://sourceforge.net/projects/mp3gain/"
11 TARBALL="$PACKAGE-${VERSION//./_}-src.zip"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="mpg123"
15 BUILD_DEPENDS="mpg123-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/mp3gain/files/mp3gain/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/mp3gain/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 make
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $src/$PACKAGE $fs/usr/bin
36 }