wok-6.x view paulstretch/receipt @ rev 24082
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 09 18:20:09 2021 +0000 (2021-07-09) |
parents | 4ec61c378631 |
children | b0069c845544 |
line source
1 # SliTaz package receipt.
3 PACKAGE="paulstretch"
4 VERSION="2.2-2"
5 CATEGORY="multimedia"
6 SHORT_DESC="A program for stretching the audio."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 LICENSE="GPL2"
10 WEB_SITE="http://hypermammut.sourceforge.net/paulstretch/"
11 WGET_URL="$SF_MIRROR/hypermammut/$TARBALL"
13 DEPENDS="fltk libvorbis audiofile portaudio libmad fftw mxml"
14 BUILD_DEPENDS="fltk-dev libvorbis-dev audiofile-dev portaudio-dev libmad-dev \
15 fftw-dev xorg-dev mxml-dev zlib-dev"
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/hypermammut/files/$PACKAGE 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed 's/mxml/& -lz -lvorbis -logg/' compile_linux_fftw.sh | sh
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $src/paulstretch $fs/usr/bin
35 }