# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# upstream commit "Update SoundFont to v2.0.3": a URL whose content can't change
COMMIT="97049183643d5fc5a9322a69c5b09efb667c6c3a"

DESCRIPTION="The GeneralUser GS soundfont"
HOMEPAGE="https://schristiancollins.com/generaluser.php https://github.com/mrbumpy409/GeneralUser-GS"
SRC_URI="https://raw.githubusercontent.com/mrbumpy409/GeneralUser-GS/${COMMIT}/GeneralUser-GS.sf2 -> ${P}.sf2"
S="${WORKDIR}"

LICENSE="GeneralUser-GS"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~ppc ~ppc64 x86"

src_unpack() {
	# the distfile is the soundfont itself, nothing to unpack
	:
}

src_install() {
	insinto /usr/share/sounds/sf2
	newins "${DISTDIR}/${P}.sf2" GeneralUser-GS.sf2
}