milis/talimatname/temel/readline/talimat

48 lines
1.0 KiB
Plaintext
Raw Normal View History

2017-10-27 21:56:50 +02:00
# Tanım: Set of libraries that offers command-line editing and history capabilities.
2016-02-24 01:27:23 +01:00
# URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
2017-10-27 21:56:50 +02:00
# Paketçi: milisarge
# Gerekler:
2017-10-28 14:15:02 +02:00
isim=readline
surum=6.3
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
kaynak=(http://ftp.gnu.org/gnu/readline/readline-$surum.tar.gz
http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-upstream_fixes-3.patch)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle()
2016-02-24 01:27:23 +01:00
{
2017-10-28 14:15:02 +02:00
cd readline-$surum
patch -Np1 -i ../$isim-$surum-upstream_fixes-3.patch
2016-02-24 01:27:23 +01:00
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
./configure --prefix=/usr \
2017-10-28 14:15:02 +02:00
--docdir=/usr/share/doc/readline-$surum
2016-02-24 01:27:23 +01:00
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
2017-10-28 14:15:02 +02:00
mkdir -p $PKG/usr/share/doc/readline-$surum
2016-02-24 01:27:23 +01:00
install -v -m644 doc/*.{ps,pdf,html,dvi} \
2017-10-28 14:15:02 +02:00
$PKG/usr/share/doc/readline-$surum
2016-02-24 01:27:23 +01:00
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
}