mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
34 lines
1 KiB
Bash
34 lines
1 KiB
Bash
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
|
|
# Modified by OpenPogo
|
|
|
|
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=('ncurses')
|
|
backup=("opt/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=/opt \
|
|
--mandir=/opt/share/man --infodir=/opt/share/info || return 1
|
|
make SHLIB_LIBS=-lncurses || return 1
|
|
make DESTDIR=${startdir}/pkg install || return 1
|
|
|
|
mkdir -p ${startdir}/pkg/opt/etc
|
|
install -m644 ../inputrc ${startdir}/pkg/opt/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
|
|
}
|