CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
grep: updated to 3.1
[crossrootfs.git] / readline / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: Lets users edit command lines as they are typed in
2# URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
7f8f7f35 5# Depends on: ncurses
6dca1d21
JB
6
7name=readline
4a59c915 8version=7.0.3
a2ce1ff5 9release=1
4a59c915
VM
10source=(http://ftpmirror.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz
11 $name-$version.patch.gz inputrc)
6dca1d21
JB
12
13build() {
4a59c915
VM
14 cd $name-${version:0:3}
15
16 gunzip -c $SRC/$name-$version.patch.gz | patch -p0
7f8f7f35
VM
17
18 # Don't use rpath for linking the shared libs
19 sed -i '117s/-Wl,-rpath,$(libdir)//' support/shobj-conf
20
6dca1d21
JB
21 ./configure --build=$CHOST \
22 --host=$CTARGET \
f4849e73
VM
23 --prefix=/usr
24 make -j1 SHLIB_LIBS=-lncurses
25 make -j1 DESTDIR=$PKG install
7f8f7f35
VM
26
27 install -d $PKG/lib
28 mv $PKG/usr/lib/lib*.so.* $PKG/lib
9fdb659b
VM
29 ln -sf ../../lib/libhistory.so.${version:0:3} $PKG/usr/lib/libhistory.so
30 ln -sf ../../lib/libreadline.so.${version:0:3} $PKG/usr/lib/libreadline.so
7f8f7f35 31
4a59c915
VM
32 # Compatibility symlinks, remove later
33 ln -s libreadline.so.7.0 $PKG/lib/libreadline.so.6
34 ln -s libhistory.so.7.0 $PKG/lib/libhistory.so.6
35
6dca1d21 36 install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
f4849e73 37 rm -r $PKG/usr/share/{doc,info}
6dca1d21 38}