From 8b9ec344dac642b4fd9009d339748a328eb5c0fd Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Tue, 23 Jul 2019 19:50:04 -0600 Subject: [PATCH] Add pkg-config --- recipes/pkg-config/recipe.sh | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 recipes/pkg-config/recipe.sh diff --git a/recipes/pkg-config/recipe.sh b/recipes/pkg-config/recipe.sh new file mode 100755 index 000000000..6f514dae0 --- /dev/null +++ b/recipes/pkg-config/recipe.sh @@ -0,0 +1,43 @@ +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_update { + echo "skipping update" + skip=1 +} + +function recipe_build { + wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub + export LDFLAGS="--static" + ./configure \ + --build="${BUILD}" \ + --host="${HOST}" \ + --prefix="" \ + --disable-shared \ + --enable-static + make -j"$(nproc)" + skip=1 +} + +function recipe_test { + echo "skipping test" + skip=1 +} + +function recipe_clean { + make clean + skip=1 +} + +function recipe_stage { + export DESTDIR="$(realpath $1)" + make install + rm -f "${DESTDIR}/lib/"*.la + skip=1 +} -- GitLab