feat: Remove build_and_install function

This commit is contained in:
Carlos Álvaro
2022-06-22 09:59:41 +02:00
parent 4f1e059fa6
commit 6f1891cff8
2 changed files with 1 additions and 23 deletions

View File

@@ -139,24 +139,3 @@ function extract()
log_info "Unpacking file: ${FILE}"
tar xzf "${FILE}" --strip-components 1
}
#--- FUNCTION -------------------------------------------------------------------------------------------------------
# NAME: build_and_install
# DESCRIPTION: Build and install the given package from the current directory using cmake.
#----------------------------------------------------------------------------------------------------------------------
function build_and_install()
{
local PACKAGE_NAME="${1}"; shift
local CMAKE_ARGS=(
-Wno-dev
-DCMAKE_BUILD_TYPE=Release
)
# shellcheck disable=SC2206
CMAKE_ARGS+=( $@ )
log_info "Building and installing ${PACKAGE_NAME} ..."
log_debug "CMAKE_ARGS: ${CMAKE_ARGS[@]}"
cmake ${CMAKE_ARGS[@]} .
cmake --build . --target install --config Release
}

View File

@@ -14,8 +14,7 @@ REQUIRED_PACKAGES=(
)
BUILD_DEPENDENCIES=(
make gcc g++ cmake pkg-config libssl-dev zlib1g-dev libffi-dev
libpcre3-dev heimdal-dev
make gcc g++
)
apt-get update