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

configure() {
    set -e
    # Fix warning caused by perl-5.22 and later
    sed -i 's:\\\${:\\\$\\{:' intltool-update.in

    ./configure --prefix=/usr
}

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

check() {
    set -e
    make check
}

do_install() {
    set -e
    make DESTDIR="$DESTDIR" install
    install -v -Dm644 doc/I18N-HOWTO "${DESTDIR}/usr/share/doc/intltool-0.51.0/I18N-HOWTO"
}
