wok annotate TiMidity++/receipt @ rev 24540
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 16:54:57 2022 +0000 (2022-02-23) |
parents | ecebedde2c92 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
mojo@13217 | 1 # SliTaz package receipt. |
mojo@13217 | 2 |
mojo@13217 | 3 PACKAGE="TiMidity++" |
Hans-G?nter@22463 | 4 VERSION="2.15.0" |
mojo@13217 | 5 CATEGORY="multimedia" |
Hans-G?nter@22463 | 6 SHORT_DESC="An open source MIDI to WAVE converter and player." |
mojo@13217 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@22463 | 9 WEB_SITE="https://sourceforge.net/projects/timidity/" |
mojo@13217 | 10 |
Hans-G?nter@22463 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@22463 | 12 WGET_URL="$SF_MIRROR/timidity/$TARBALL" |
Hans-G?nter@22463 | 13 |
Hans-G?nter@22463 | 14 DEPENDS="alsa-lib flac gtk+ jack-audio-connection-kit libao libdb libogg \ |
Hans-G?nter@22463 | 15 libvorbis portaudio xorg-libXaw3d" |
Hans-G?nter@22463 | 16 BUILD_DEPENDS="alsa-lib-dev flac-dev gtk+-dev jack-audio-connection-kit-dev \ |
Hans-G?nter@22463 | 17 libao-dev libogg-dev libvorbis-dev portaudio-dev xorg-libXaw3d-dev" |
mojo@13217 | 18 |
pascal@24093 | 19 current_version() |
pascal@24093 | 20 { |
pascal@24093 | 21 wget -O - $WEB_SITE/files/ 2>/dev/null | sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | \ |
pascal@24093 | 22 xargs wget -O - 2>/dev/null | sed "/${PACKAGE}-/!d;s|.*${PACKAGE}-\\([0-9\\.]*\\)*\".*|\\1|" | sed '/^[0-9]/!d;q' |
pascal@24093 | 23 } |
pascal@24093 | 24 |
mojo@13217 | 25 # Rules to configure and make the package. |
mojo@13217 | 26 compile_rules() |
mojo@13217 | 27 { |
Hans-G?nter@22463 | 28 ./configure \ |
Hans-G?nter@22463 | 29 --prefix=/usr \ |
Hans-G?nter@22463 | 30 --enable-audio=alsa,portaudio,jack,ao,vorbis,flac \ |
Hans-G?nter@22463 | 31 --enable-interface=gtk,xaw \ |
al@19264 | 32 --enable-alsaseq |
mojo@13217 | 33 make && |
mojo@13217 | 34 make DESTDIR=$DESTDIR install |
mojo@13217 | 35 } |
mojo@13217 | 36 |
al@19264 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19264 | 38 genpkg_rules() |
mojo@13217 | 39 { |
mojo@13217 | 40 mkdir -p $fs/usr |
Hans-G?nter@22463 | 41 cp -a $install/usr/bin $fs/usr |
mojo@13217 | 42 } |
mojo@13217 | 43 |
mojo@13217 | 44 post_install() |
mojo@13217 | 45 { |
Hans-G?nter@22463 | 46 # create configuration file |
pascal@18730 | 47 mkdir "$1/usr/share/timidity" |
pascal@18730 | 48 touch "$1/usr/share/timidity/timidity.cfg" |
mojo@13217 | 49 } |
mojo@13217 | 50 |
mojo@13217 | 51 post_remove() |
mojo@13217 | 52 { |
pascal@18730 | 53 rm -rf "$1/usr/share/timidity" |
mojo@13217 | 54 } |