#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2015-2016, 2026 InterGenJLU
#
# Pcre2 10.47
# LFS 13.0 Section 8.13

configure() {
    set -e
    ./configure --prefix=/usr                       \
        --docdir=/usr/share/doc/pcre2-10.47         \
        --enable-unicode                            \
        --enable-jit                                \
        --enable-pcre2-16                           \
        --enable-pcre2-32                           \
        --enable-pcre2grep-libz                     \
        --enable-pcre2grep-libbz2                   \
        --enable-pcre2test-libreadline              \
        --disable-static
}

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

check() {
    set -e
    make check
}

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