wok view freepats/receipt @ rev 24603
inxi: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 02 09:21:45 2022 +0000 (2022-03-02) |
parents | 9e01bc6321ea |
children | cb67b4f8be05 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://freepats.zenvoid.org/"
11 WGET_URL="http://freepats.zenvoid.org/$TARBALL"
13 DEPENDS="TiMidity++"
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/feross/freepats/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/timidity
27 cp -a $src $fs/usr/share/timidity/freepats
28 chown -R root.root $fs/usr/share/timidity/freepats
29 }
31 post_install()
32 {
33 # Update timidity.cfg
34 cat >> "$1/usr/share/timidity/timidity.cfg" <<EOF
35 # freepats
36 dir /usr/share/timidity/freepats
37 source /usr/share/timidity/freepats/freepats.cfg
38 EOF
39 }
41 post_remove()
42 {
43 sed -i '/freepats/d' "$1/usr/share/timidity/timidity.cfg"
44 }