wok-next annotate 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
rev   line source
al@21017 1 # SliTaz package receipt v2.
mojo@13218 2
mojo@13218 3 PACKAGE="freepats"
mojo@13218 4 VERSION="20060219"
mojo@13218 5 CATEGORY="multimedia"
al@21017 6 SHORT_DESC="Free and open set of instrument patches"
mojo@13218 7 MAINTAINER="paul@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@21017 9 WEB_SITE="http://freepats.zenvoid.org/"
al@21017 10
mojo@13218 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mojo@13218 12 WGET_URL="http://freepats.zenvoid.org/$TARBALL"
mojo@13218 13
al@21017 14 genpkg_rules() {
mojo@13218 15 mkdir -p $fs/usr/share/timidity
mojo@13218 16 cp -a $src $fs/usr/share/timidity/freepats
mojo@13218 17 chown -R root.root $fs/usr/share/timidity/freepats
al@21017 18 DEPENDS="timidity++"
mojo@13218 19 }
mojo@13218 20
al@21017 21 post_install() {
mojo@13218 22 # Update timidity.cfg
pascal@18730 23 cat >> "$1/usr/share/timidity/timidity.cfg" <<EOF
al@21017 24 # freepats
mojo@13218 25 dir /usr/share/timidity/freepats
mojo@13218 26 source /usr/share/timidity/freepats/freepats.cfg
mojo@13218 27 EOF
mojo@13218 28 }
mojo@13218 29
al@21017 30 post_remove() {
pascal@18730 31 sed -i '/freepats/d' "$1/usr/share/timidity/timidity.cfg"
mojo@13218 32 }