milis/talimatname/temel/readline/talimat

49 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-02-24 01:27:23 +01:00
# Description: Set of libraries that offers command-line editing and history capabilities.
# URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
# Maintainer: Chet Ramey, chet dot ramey at case dot edu
# Packager: pierre at nutyx dot org
name=readline
version=6.3
release=1
source=(http://ftp.gnu.org/gnu/readline/readline-$version.tar.gz
http://www.linuxfromscratch.org/patches/downloads/$name/$name-$version-upstream_fixes-3.patch)
2016-03-07 13:45:49 +01:00
#PKGMK_GROUPS=(devel man doc)
2016-02-24 01:27:23 +01:00
build()
{
cd readline-$version
patch -Np1 -i ../$name-$version-upstream_fixes-3.patch
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
./configure --prefix=/usr \
--docdir=/usr/share/doc/readline-$version
make SHLIB_LIBS=-lncurses
make DESTDIR=$PKG install
mkdir -p $PKG/lib
mv -v $PKG/usr/lib/lib{readline,history}.so.* \
$PKG/lib
rm -rf $PKG/usr/share/info/dir
mkdir -p $PKG/usr/share/doc/readline-$version
install -v -m644 doc/*.{ps,pdf,html,dvi} \
$PKG/usr/share/doc/readline-$version
rm -rv $PKG/usr/bin
ln -sfv ../../lib/libreadline.so.6 \
$PKG/usr/lib/libreadline.so
ln -sfv ../../lib/libhistory.so.6 \
$PKG/usr/lib/libhistory.so
2016-03-07 13:45:49 +01:00
rm -r $PKG/usr/share/{doc,info}
2016-02-24 01:27:23 +01:00
}