summaryrefslogtreecommitdiff
path: root/scripts/build/debug/000-template.sh
blob: 47d2caea501e8105ee8f9f7ec6eb56b4e25be759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Template file for a debug utility

# Put your download code here
do_debug_foobar_get() {
    # For example:
    # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/
    :
}

# Put your extract code here
do_debug_foobar_extract() {
    # For example:
    # CT_Extract "foobar-${CT_FOOBAR_VERSION}"
    # CT_Patch "foobar" "${CT_FOOBAR_VERSION}"
    :
}

# Put your build code here
do_debug_foobar_build() {
    # For example:
    # mkdir -p "${CT_BUILD_DIR}/build-foobar"
    # CT_Pushd "${CT_BUILD_DIR}/build-foobar"
    # CT_DoExecLog CFG                                        \
    # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure"   \
    #     --build=${CT_BUILD}                                 \
    #     --host=${CT_TARGET}                                 \
    #     --prefix=/usr                                       \
    #     --foobar-options
    # CT_DoExecLog ALL make
    # CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install
    # CT_Popd
    :
}