wok-6.x view audacity/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="audacity"
4 VERSION="2.3.2"
5 CATEGORY="multimedia"
6 TAGS="sound audio recorder editor"
7 SHORT_DESC="A free multi-track audio editor and recorder."
8 MAINTAINER="allan316@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.audacityteam.org"
12 SOURCE="Audacity"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$TARBALL"
16 DEPENDS="alsa-lib ffmpeg flac gcc49-lib-base imlib2 lame libatomic \
17 libid3tag libmad libsndfile libvorbis wxWidgets xorg-libXxf86vm"
18 BUILD_DEPENDS="alsa-lib-dev bash cmake expat-dev ffmpeg-dev flac-dev \
19 gcc49 lame-dev libatomic libmad-dev libsndfile-dev libtool \
20 libvorbis-dev portaudio-dev wxWidgets-dev"
22 current_version()
23 {
24 wget -O - ${WGET_URL%/arch*} 2>/dev/null | \
25 sed '/releases.tag/!d;s|.*/tag.Audacity-\(.*\)".*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 export CC=gcc-49
32 export CXX=g++-49
33 export SHELL=/bin/bash
34 export CONFIG_SHELL=/bin/bash
35 export LDFLAGS="$LDFLAGS -l:libatomic.so.1"
37 ./configure \
38 --prefix=/usr \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 --with-ffmpeg=system \
42 $CONFIGURE_ARGS &&
43 make &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/share/icons $fs/usr/share
54 cp -a $install/usr/share/audacity $fs/usr/share
55 cp -a $install/usr/share/pixmaps $fs/usr/share
56 cp -a $install/usr/share/applications $fs/usr/share
57 }