description="Command line editor library providing generic line editing, history, and tokenization functions."
url="http://thrysoee.dk/editline/"

packager="Grat-OS Team"
maintainer="Grat-OS Team"

name=libedit
version=20240517-3.1

source=(https://thrysoee.dk/editline/libedit-${version}.tar.gz)

build() {
  cd $name-${version}

  ./configure --prefix=/usr

  make
  make prefix=$PKG/usr 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
}
