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