#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2015-2016, 2026 InterGenJLU
#
# double-conversion 3.4.0 — Binary-decimal conversion library
# BLFS 13.0

configure() {
    set -e
    mkdir -p build
    cd       build

    cmake -DCMAKE_INSTALL_PREFIX=/usr        \
          -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
          -DBUILD_SHARED_LIBS=ON             \
          -DBUILD_TESTING=OFF                \
          ..
}

build() {
    set -e
    cd build
    make -j${IGOS_JOBS}
}

do_install() {
    set -e
    cd build
    make DESTDIR="$DESTDIR" install
}
