Commit | Line | Data |
---|---|---|
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 | |
7 | name=readline | |
a3da6e34 | 8 | version=6.3.6 |
89d5e262 | 9 | release=1 |
7f8f7f35 | 10 | source=(http://ftp.gnu.org/gnu/$name/$name-${version::3}.tar.gz \ |
a3da6e34 | 11 | $name-$version.patch.gz inputrc $name-$version-wcwidth.patch) |
6dca1d21 JB |
12 | |
13 | build() { | |
7f8f7f35 VM |
14 | cd $name-${version::3} |
15 | ||
16 | gunzip -c $SRC/$name-$version.patch.gz | patch -p0 | |
17 | ||
18 | # Don't use rpath for linking the shared libs | |
19 | sed -i '117s/-Wl,-rpath,$(libdir)//' support/shobj-conf | |
20 | ||
a3da6e34 VM |
21 | # Patch to avoid wcwidth tests |
22 | patch -i $SRC/$name-$version-wcwidth.patch | |
23 | ||
6dca1d21 JB |
24 | ./configure --build=$CHOST \ |
25 | --host=$CTARGET \ | |
70e50f03 JB |
26 | --prefix=/usr \ |
27 | --mandir=/usr/man | |
7f8f7f35 | 28 | make SHLIB_LIBS=-lncurses |
6dca1d21 | 29 | make DESTDIR=$PKG install |
7f8f7f35 VM |
30 | |
31 | install -d $PKG/lib | |
32 | mv $PKG/usr/lib/lib*.so.* $PKG/lib | |
9fdb659b VM |
33 | ln -sf ../../lib/libhistory.so.${version:0:3} $PKG/usr/lib/libhistory.so |
34 | ln -sf ../../lib/libreadline.so.${version:0:3} $PKG/usr/lib/libreadline.so | |
7f8f7f35 | 35 | |
6dca1d21 | 36 | install -D -m 644 $SRC/inputrc $PKG/etc/inputrc |
7f8f7f35 | 37 | rm -r $PKG/usr/share/info |
6dca1d21 | 38 | } |