wok-current annotate freepats/receipt @ rev 25733

Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author Stanislas Leduc <shann@slitaz.org>
date Fri Dec 20 16:13:23 2024 +0000 (5 days ago)
parents b9659e3c2111
children
rev   line source
mojo@13218 1 # SliTaz package receipt.
mojo@13218 2
mojo@13218 3 PACKAGE="freepats"
mojo@13218 4 VERSION="20060219"
mojo@13218 5 CATEGORY="multimedia"
mojo@13218 6 SHORT_DESC="Free and open set of instrument patches."
mojo@13218 7 MAINTAINER="paul@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
mojo@13218 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@24746 10 WEB_SITE="https://freepats.zenvoid.org/"
pascal@24746 11 WGET_URL="https://freepats.zenvoid.org/$TARBALL"
mojo@13218 12
mojo@13218 13 DEPENDS="TiMidity++"
mojo@13218 14 BUILD_DEPENDS=""
mojo@13218 15
pascal@24545 16 # What is the latest version available today?
pascal@24545 17 current_version()
pascal@24545 18 {
pascal@24545 19 wget -O - https://github.com/feross/freepats/tags 2>/dev/null | \
pascal@24545 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24545 21 }
pascal@24545 22
mojo@13218 23 # Rules to gen a SliTaz package suitable for Tazpkg.
mojo@13218 24 genpkg_rules()
mojo@13218 25 {
mojo@13218 26 mkdir -p $fs/usr/share/timidity
mojo@13218 27 cp -a $src $fs/usr/share/timidity/freepats
mojo@13218 28 chown -R root.root $fs/usr/share/timidity/freepats
mojo@13218 29 }
mojo@13218 30
mojo@13218 31 post_install()
mojo@13218 32 {
mojo@13218 33 # Update timidity.cfg
pascal@18730 34 cat >> "$1/usr/share/timidity/timidity.cfg" <<EOF
mojo@13218 35 # freepats
mojo@13218 36 dir /usr/share/timidity/freepats
mojo@13218 37 source /usr/share/timidity/freepats/freepats.cfg
mojo@13218 38 EOF
mojo@13218 39 }
mojo@13218 40
mojo@13218 41 post_remove()
mojo@13218 42 {
pascal@18730 43 sed -i '/freepats/d' "$1/usr/share/timidity/timidity.cfg"
mojo@13218 44 }