Skip to content
Snippets Groups Projects
Verified Commit a2cfd448 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Convert pkg-config to toml recipe format

parent c5b54917
No related branches found
No related tags found
No related merge requests found
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
}
[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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment