Convert pkg-config to toml recipe format

This commit is contained in:
Jeremy Soller 2023-04-03 14:12:03 -06:00
parent c5b5491736
commit a2cfd448b0
No known key found for this signature in database
GPG Key ID: DCFCA852D3906975
2 changed files with 14 additions and 33 deletions

View File

@ -1,33 +0,0 @@
VERSION="0.29.2"
TAR="https://pkg-config.freedesktop.org/releases/pkg-config-${VERSION}.tar.gz"
BUILD_DEPENDS=(gettext glib libiconv pcre)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
wget -O config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
export LDFLAGS="--static"
./configure \
--build="${BUILD}" \
--host="${HOST}" \
--prefix="" \
--disable-shared \
--enable-static
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
export DESTDIR="$(realpath $1)"
"$REDOX_MAKE" install
rm -f "${DESTDIR}/lib/"*.la
skip=1
}

14
recipes/pkg-config/recipe.toml Executable file
View File

@ -0,0 +1,14 @@
[source]
tar = "https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz"
script = """
wget -O config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
"""
[build]
dependencies = [
"gettext",
"glib",
"libiconv",
"pcre",
]
template = "configure"