wok view freepats/receipt @ rev 13872
Up dahdi (2.6.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 14 23:42:27 2013 +0100 (2013-01-14) |
parents | |
children | 7896f0694ef6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="freepats"
4 VERSION="20060219"
5 CATEGORY="multimedia"
6 SHORT_DESC="Free and open set of instrument patches."
7 MAINTAINER="paul@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://freepats.zenvoid.org/"
10 WGET_URL="http://freepats.zenvoid.org/$TARBALL"
12 DEPENDS="TiMidity++"
13 BUILD_DEPENDS=""
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/timidity
19 cp -a $src $fs/usr/share/timidity/freepats
20 chown -R root.root $fs/usr/share/timidity/freepats
21 }
23 post_install()
24 {
25 # Update timidity.cfg
26 cat >> $1/usr/share/timidity/timidity.cfg <<EOF
27 # freepats
28 dir /usr/share/timidity/freepats
29 source /usr/share/timidity/freepats/freepats.cfg
30 EOF
31 }
33 post_remove()
34 {
35 sed -i '/freepats/d' $1/usr/share/timidity/timidity.cfg
36 }