wok view TiMidity++/receipt @ rev 25526
created recipe for lua5.1-mpack 1.0.9
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 25 07:18:33 2023 +0100 (18 months ago) |
parents | ad0bc3efbf37 |
children | 1e09c4c56491 |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE/files/ 2>/dev/null | sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | \
23 xargs wget -O - 2>/dev/null | sed "/${PACKAGE}-/!d;s|.*${PACKAGE}-\\([0-9\\.]*\\)*\".*|\\1|" | sed '/^[0-9]/!d;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --enable-audio=alsa,portaudio,jack,ao,vorbis,flac \
32 --enable-interface=gtk,xaw \
33 --enable-alsaseq
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/usr/bin $fs/usr
43 }
45 post_install()
46 {
47 # create configuration file
48 mkdir "$1/usr/share/timidity"
49 touch "$1/usr/share/timidity/timidity.cfg"
50 }
52 post_remove()
53 {
54 rm -rf "$1/usr/share/timidity"
55 }