wok view qtgain/receipt @ rev 24535

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 11:49:52 2022 +0000 (2022-02-23)
parents e6a4cd87fdcb
children c85bdee1fe53
line source
1 # SliTaz package receipt.
3 PACKAGE="qtgain"
4 VERSION="0.9.5"
5 CATEGORY="multimedia"
6 SHORT_DESC="Simple frontend for MP3Gain, VorbisGain, AACGain and Metaflac."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="56842-QtGain.tar.lzma"
10 WEB_SITE="https://www.linux-apps.com/content/show.php/QtGain?content=56842"
11 WGET_URL="http://qt-apps.org/CONTENT/content-files/$TARBALL"
13 DEPENDS="libQtCore libQtGui libQtNetwork"
14 BUILD_DEPENDS="Qt4-dev qmake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/qtgain/files/QtGain/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/QtGain/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 qmake && make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/pixmaps
34 cp -a $src/bin $fs/usr
35 cp -a $src/qtgain.png $fs/usr/share/pixmaps
36 cp -a $stuff/* $fs
37 chown -R root.root $fs
38 }