description="Command line editor library providing generic line editing, history, and tokenization functions."
url="http://thrysoee.dk/editline/"
packager="tnut <tnut@nutyx.org>"
contributors="Greg"

name=libedit
version=20180525.3.1
_version=20180525-3.1

source=(http://www.thrysoee.dk/editline/libedit-${_version}.tar.gz)

build(){
    cd $name-${_version}
    ./configure --prefix=/usr \
                --enable-widec
    make
    make DESTDIR=$PKG install

    # conflicts with readline
    rm $PKG/usr/share/man/man3/history.3
    cp $PKG/usr/share/man/man3/editline.3 \
    $PKG/usr/share/man/man3/el.3

    # rm .la
    rm $PKG/usr/lib/$name.la
}
