# Maintainer: Alexander Foremny pkgname=readline pkgver=6.0 pkgrel=2 pkgdesc="GNU readline library" arch=(arm) url="http://tiswww.case.edu/php/chet/readline/rltop.html" license=('GPL') groups=('base') depends=('glibc' 'ncurses') backup=("etc/inputrc") source=( http://www.sfr-fresh.com/unix/misc/readline-${pkgver}.tar.gz inputrc) md5sums=('b7f65a48add447693be6e86f04a63019' 'e5fc955f56d9fa5beb871f3279b8fa8b') build() { cd $srcdir/readline-${pkgver} ./configure --prefix=/usr \ --mandir=/usr/share/man --infodir=/usr/share/info || return 1 make SHLIB_LIBS=-lncurses || return 1 make DESTDIR=${startdir}/pkg install || return 1 mkdir -p ${startdir}/pkg/etc install -m644 ../inputrc ${startdir}/pkg/etc/inputrc || return 1 cd ${startdir}/pkg mkdir -pv lib mv -v usr/lib/lib{readline,history}.so.6* lib/ || return 1 ln -svf ../../lib/libreadline.so.5 usr/lib/libreadline.so || return 1 ln -svf ../../lib/libhistory.so.5 usr/lib/libhistory.so || return 1 }