wok-next diff 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 diff
     1.1 --- a/freepats/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/freepats/receipt	Tue Oct 16 16:46:05 2018 +0300
     1.3 @@ -1,37 +1,32 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="freepats"
     1.8  VERSION="20060219"
     1.9  CATEGORY="multimedia"
    1.10 -SHORT_DESC="Free and open set of instrument patches."
    1.11 +SHORT_DESC="Free and open set of instrument patches"
    1.12  MAINTAINER="paul@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://freepats.zenvoid.org/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WEB_SITE="http://freepats.zenvoid.org/"
    1.18  WGET_URL="http://freepats.zenvoid.org/$TARBALL"
    1.19  
    1.20 -DEPENDS="TiMidity++"
    1.21 -BUILD_DEPENDS=""
    1.22 -
    1.23 -# Rules to gen a SliTaz package suitable for Tazpkg.   
    1.24 -genpkg_rules()                                      
    1.25 -{
    1.26 +genpkg_rules() {
    1.27  	mkdir -p $fs/usr/share/timidity
    1.28  	cp -a $src $fs/usr/share/timidity/freepats
    1.29  	chown -R root.root $fs/usr/share/timidity/freepats
    1.30 +	DEPENDS="timidity++"
    1.31  }
    1.32  
    1.33 -post_install()
    1.34 -{
    1.35 +post_install() {
    1.36  	# Update timidity.cfg
    1.37  		cat >> "$1/usr/share/timidity/timidity.cfg" <<EOF
    1.38 -# freepats 
    1.39 +# freepats
    1.40  dir /usr/share/timidity/freepats
    1.41  source /usr/share/timidity/freepats/freepats.cfg
    1.42  EOF
    1.43  }
    1.44  
    1.45 -post_remove()
    1.46 -{
    1.47 +post_remove() {
    1.48  	sed -i '/freepats/d' "$1/usr/share/timidity/timidity.cfg"
    1.49  }