# Contributor: Rafael Kitover <rkitover@gmail.com>
# Anyone is welcome to update this package, for new versions or patches or w/e.

pkgname=('rlwrap')
pkgver=0.43
pkgrel=0
pkgdesc='utility that uses the GNU readline library to allow the editing of keyboard input for any command'
arch=('i686' 'x86_64')
groups=('utilities')
license=('GPL')
url='https://github.com/hanslub42/rlwrap'
depends=('libreadline')
makedepends=('gcc' 'make' 'libreadline-devel')
install=rlwrap.install
source=("https://github.com/hanslub42/rlwrap/releases/download/v${pkgver}/rlwrap-${pkgver}.tar.gz")
sha256sums=('8e86d0b7882d9b8a73d229897a90edc207b1ae7fa0899dca8ee01c31a93feb2f')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make install DESTDIR="${pkgdir}"
}
