#!/bin/env beesh
# BEE_VERSION binutils-2.37-0

# SRCURL="https://ftp.gnu.org/gnu/binutils/binutils-${PKGVERSION}.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/e78d9ff2976b745a348f4c1f27c77cb1/binutils-2.37.tar.xz"

mee_patch_post() {
    rm -fv etc/standards.info
    sed -i.bak '/^INFO/s/standards.info //' etc/Makefile.in
}

mee_configure() {
    bee_configure \
        --enable-shared \
        --disable-nls
}

mee_check() {
    make check 2>&1 | tee check.log
}

mee_install() {
    bee_install
    cp -v ${S}/include/libiberty.h ${D}/usr/include
}