wok-next annotate TiMidity++/receipt @ rev 15805

bash: prevent rm .bashrc error when removing bash
author Richard Dunbar <mojo@slitaz.org>
date Thu Jan 23 13:38:58 2014 +0000 (2014-01-23)
parents fe448de6c617
children 9e01bc6321ea
rev   line source
mojo@13217 1 # SliTaz package receipt.
mojo@13217 2
mojo@13217 3 PACKAGE="TiMidity++"
mojo@13217 4 VERSION="2.14.0"
mojo@13217 5 CATEGORY="multimedia"
mojo@13217 6 SHORT_DESC="TiMidity++ is an open source MIDI to WAVE converter and player."
mojo@13217 7 MAINTAINER="paul@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
mojo@13217 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mojo@13217 10 WEB_SITE="http://timidity.sourceforge.net/"
mojo@13217 11 WGET_URL="http://sourceforge.net/projects/timidity/files/latest/download"
mojo@13217 12
mojo@13217 13 DEPENDS="alsa-lib portaudio jack-audio-connection-kit libao libvorbis libogg flac gtk+ xorg-libXaw"
mojo@13217 14 BUILD_DEPENDS="alsa-lib-dev portaudio-dev jack-audio-connection-kit-dev libao-dev libvorbis-dev libogg-dev
mojo@13217 15 flac-dev gtk+-dev xorg-libXaw-dev"
mojo@13217 16
mojo@13217 17 # Rules to configure and make the package.
mojo@13217 18 compile_rules()
mojo@13217 19 {
mojo@13217 20 cd $src
mojo@13217 21 ./configure --prefix=/usr \
mojo@13217 22 --enable-audio=alsa,portaudio,jack,ao,vorbis,flac \
mojo@13217 23 --enable-interface=gtk,xaw \
mojo@13217 24 --enable-alsaseq
mojo@13217 25 make &&
mojo@13217 26 make DESTDIR=$DESTDIR install
mojo@13217 27 }
mojo@13217 28
mojo@13217 29 # Rules to gen a SliTaz package suitable for Tazpkg.
mojo@13217 30 genpkg_rules()
mojo@13217 31 {
mojo@13217 32 mkdir -p $fs/usr
mojo@13217 33 cp -a $install/usr/bin $fs/usr
mojo@13217 34 }
mojo@13217 35
mojo@13217 36 post_install()
mojo@13217 37 {
mojo@13217 38 # create config file
mojo@13217 39 mkdir $1/usr/share/timidity
mojo@13217 40 touch $1/usr/share/timidity/timidity.cfg
mojo@13217 41 }
mojo@13217 42
mojo@13217 43 post_remove()
mojo@13217 44 {
mojo@13217 45 rm -rf $1/usr/share/timidity
mojo@13217 46 }
mojo@13217 47