# SPDX-License-Identifier: GPL-3.0-or-later

src_prepare() {
    default
}

src_configure() {
    local host_triplet
    host_triplet="$(gcc -dumpmachine)"

    PATH="${PREFIX}/bin:/usr/bin:/bin" \
    PKG_CONFIG_PATH="${LIBDIR}/pkgconfig:${PREFIX}/lib/pkgconfig" \
    ./configure \
        --prefix="${PREFIX}" \
        --libdir="${LIBDIR}" \
        --includedir="${PREFIX}/include" \
        --host="${host_triplet}" \
        --build="${host_triplet}" \
        --enable-shared \
        --disable-static \
        --disable-doc \
        --disable-tests \
        --disable-tools \
        --disable-libdane \
        --without-p11-kit \
        --without-idn \
        --without-zlib \
        --without-brotli \
        --without-tpm \
        --without-tpm2
}

src_compile() {
    default_src_compile
}

src_install() {
    default_src_install
}
