wok-current view freepats/receipt @ rev 25096
created recipe for wordgrinder
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 15:13:12 2022 +0100 (2022-06-18) |
parents | b9659e3c2111 |
children |
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="https://freepats.zenvoid.org/"
11 WGET_URL="https://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 }