#!/usr/bin/env beesh

# BEE_VERSION ed-1.14.2-0
SRCURL[0]="https://ftp.gnu.org/pub/gnu/ed/ed-${PKGVERSION}.tar.lz"

# build_in_sourcedir

BEE_BUILDTYPE=autotools

#mee_extract() {
#    bee_extract "${@}"
#}

#mee_patch() {
#    bee_patch "${@}"
#}

#mee_configure() {
#    start_cmd ${S}/configure --prefix=/usr
#}

mee_build() {
    make CFLAGS='-Wno-misleading-indentation'
}

mee_install() {
    # make install DESTDIR=${D}
    bee_install
    mkdir ${D}/bin
    ln -s /usr/bin/ed  ${D}/bin/ed
    ln -s /usr/bin/red ${D}/bin/red
}
## by default this may be 'make install DESTDIR="${D}"'