freepats: convert to toml

This commit is contained in:
Jeremy Soller 2023-12-13 15:53:46 -07:00
parent 694f63120f
commit f8fe4deadf
No known key found for this signature in database
GPG Key ID: DCFCA852D3906975
2 changed files with 12 additions and 26 deletions

View File

@ -1,26 +0,0 @@
VERSION=20060219
GIT=https://gitlab.redox-os.org/redox-os/freepats.git
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
echo "skipping build"
skip=1
}
function recipe_clean {
echo "skipping clean"
skip=1
}
function recipe_stage {
mkdir -pv "$1/share/freepats"
cp -Rv ./* "$1/share/freepats"
mkdir -pv "$1/etc/timidity"
echo "dir /share/freepats" > "$1/etc/timidity/freepats.cfg"
echo "source /share/freepats/freepats.cfg" >> "$1/etc/timidity/freepats.cfg"
skip=1
}

View File

@ -0,0 +1,12 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/freepats.git"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/share/freepats"
cp -Rv "${COOKBOOK_SOURCE}/"* "${COOKBOOK_STAGE}/share/freepats"
mkdir -pv "${COOKBOOK_STAGE}/etc/timidity"
echo "dir /share/freepats" > "${COOKBOOK_STAGE}/etc/timidity/freepats.cfg"
echo "source /share/freepats/freepats.cfg" >> "${COOKBOOK_STAGE}/etc/timidity/freepats.cfg"
"""