NAME="rlwrap"
DESC="A readline wrapper"
VERSION="0.46.1"
FILES=("https://github.com/hanslub42/rlwrap/archive/refs/tags/$VERSION.tar.gz")
HASHES=("c537e8a53df36f1f996601d776203478ad56fab1d67b3c1a63057badb0851cec")
DEPENDS=("glibc" "readline" "ncurses" "perl")

PACKAGE() {
  tar xf $VERSION.tar.gz
  cd $NAME-$VERSION

  autoreconf -vi && ./configure --prefix=/usr
  make && make DESTDIR="$ROOTDIR" install

  cd .. && rm -r $NAME-$VERSION
}
