#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2015-2016, 2026 InterGenJLU
#
# luajit 20260213 — Just-In-Time compiler for Lua
# BLFS 13.0

configure() {
    set -e
    :
}

build() {
    set -e
    make PREFIX=/usr amalg -j${IGOS_JOBS}
}

do_install() {
    set -e
    make PREFIX=/usr DESTDIR="$DESTDIR" install

    # Remove static library per BLFS
    rm -vf "$DESTDIR/usr/lib/libluajit-5.1.a"
}
