mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 05:44:17 +08:00
Convert pkg-config to toml recipe format
This commit is contained in:
parent
c5b5491736
commit
a2cfd448b0
@ -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
14
recipes/pkg-config/recipe.toml
Executable 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"
|
||||
Loading…
Reference in New Issue
Block a user