From 16b4d89bd138f1b3e60c9e08347f1e531d400ea2 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 11 Jan 2023 14:44:14 +0530 Subject: [PATCH] Add 8.27 - Build pkg-config --- scripts/chapter8/8.27-pkg-config.sh | 30 +++++++++++++++++++++++++++++ scripts/main.sh | 11 +++++++++++ 2 files changed, 41 insertions(+) create mode 100644 scripts/chapter8/8.27-pkg-config.sh diff --git a/scripts/chapter8/8.27-pkg-config.sh b/scripts/chapter8/8.27-pkg-config.sh new file mode 100644 index 0000000..6bd26c6 --- /dev/null +++ b/scripts/chapter8/8.27-pkg-config.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +cd /sources +tar xf pkg-config-0.29.2.tar.gz +cd pkg-config-0.29.2 + +./configure --prefix=/usr \ + --with-internal-glib \ + --disable-host-tool \ + --docdir=/usr/share/doc/pkg-config-0.29.2 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make check + +make install + +cd /sources +rm -rf pkg-config-0.29.2 + diff --git a/scripts/main.sh b/scripts/main.sh index 805bc32..b56f581 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -858,3 +858,14 @@ then stop_script "chapter8/8.26-gcc.sh" fi +# Chapter 8.27 +# ============ +echo "Building pkg-config.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.27-pkg-config.sh" +fi +