wok-next view freepats/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 9e01bc6321ea |
children | 0cbe4b1f2230 |
line source
1 # SliTaz package receipt v2.
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 LICENSE="GPL2"
9 WEB_SITE="http://freepats.zenvoid.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://freepats.zenvoid.org/$TARBALL"
14 genpkg_rules() {
15 mkdir -p $fs/usr/share/timidity
16 cp -a $src $fs/usr/share/timidity/freepats
17 chown -R root.root $fs/usr/share/timidity/freepats
18 DEPENDS="timidity++"
19 }
21 post_install() {
22 # Update timidity.cfg
23 cat >> "$1/usr/share/timidity/timidity.cfg" <<EOF
24 # freepats
25 dir /usr/share/timidity/freepats
26 source /usr/share/timidity/freepats/freepats.cfg
27 EOF
28 }
30 post_remove() {
31 sed -i '/freepats/d' "$1/usr/share/timidity/timidity.cfg"
32 }