CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
readline: updated to 7.0
[crossrootfs.git] / readline / Pkgfile
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
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: ncurses
6
7 name=readline
8 version=7.0
9 release=1
10 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz
11 inputrc)
12
13 build() {
14 cd $name-$version
15
16 # Don't use rpath for linking the shared libs
17 sed -i '117s/-Wl,-rpath,$(libdir)//' support/shobj-conf
18
19 ./configure --build=$CHOST \
20 --host=$CTARGET \
21 --prefix=/usr
22 make -j1 SHLIB_LIBS=-lncurses
23 make -j1 DESTDIR=$PKG install
24
25 install -d $PKG/lib
26 mv $PKG/usr/lib/lib*.so.* $PKG/lib
27 ln -sf ../../lib/libhistory.so.${version:0:3} $PKG/usr/lib/libhistory.so
28 ln -sf ../../lib/libreadline.so.${version:0:3} $PKG/usr/lib/libreadline.so
29
30 install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
31 rm -r $PKG/usr/share/{doc,info}
32 }