blob: ae79013f2cb2fb4f84a38f07cba62ca0ac1f03bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="${PN/timidity-/}"
DESCRIPTION="Free and open set of instrument patches"
HOMEPAGE="http://freepats.opensrc.org/"
SRC_URI="http://freepats.opensrc.org/${MY_PN}-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 sparc x86"
RESTRICT="binchecks strip"
RDEPEND="app-eselect/eselect-timidity"
S="${WORKDIR}/${MY_PN}"
src_configure() {
echo "dir ${EPREFIX}/usr/share/timidity/${MY_PN}" > timidity.cfg || die
cat freepats.cfg >> timidity.cfg || die
}
src_install() {
insinto /usr/share/timidity/${MY_PN}
doins -r timidity.cfg Drum_000 Tone_000
dodoc README
}
pkg_postinst() {
eselect timidity update --global --if-unset
}
|