From 4c3af89bc1de653a33dc0397a0dc1e63c6469cb8 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 10 Sep 2020 14:00:02 +0300 Subject: update --- ...diting-the-build-file-during-pre_002dbuild.html | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/docs/Editing-the-build-file-during-pre_002dbuild.html (limited to 'src/docs/Editing-the-build-file-during-pre_002dbuild.html') diff --git a/src/docs/Editing-the-build-file-during-pre_002dbuild.html b/src/docs/Editing-the-build-file-during-pre_002dbuild.html new file mode 100644 index 0000000..ba9b408 --- /dev/null +++ b/src/docs/Editing-the-build-file-during-pre_002dbuild.html @@ -0,0 +1,85 @@ + + + + + + +Editing the build file during pre-build (Carbs Linux User Manual) + + + + + + + + + + + + + + + + +
+

+Up: Hooks  

+
+
+

2.3.1 Editing the build file during pre-build

+ +

You can edit the build file during pre-build. The file is copied from the +repository to the build directory named as .build.cpt. You can use +sed or any other tool to edit the build file. After the build is +complete, a diff file will be placed to the package database named as +build.diff. Here is an example build file manipulation during the +pre-build hook. +

+
+
cat <<EOF> .build.cpt
+#!/bin/sh -e
+
+for patch in bash50-0??; do
+    patch -p0 < "\$patch"
+done
+
+export LDFLAGS=-static
+
+./configure \
+    --prefix=/usr \
+    --without-bash-malloc \
+    --disable-nls
+
+export MAKEFLAGS="TERMCAP_LIB=/usr/lib/libncursesw.a $MAKEFLAGS"
+
+make
+make DESTDIR="\$1" install
+
+ln -s bash "\$1/usr/bin/sh"
+EOF
+
+ + + + + + -- cgit v1.2.3