compat-32/readline-32/Pkgfile
2012-11-21 11:12:43 -06:00

32 lines
1.0 KiB
Plaintext

# Description: Lets users edit command lines as they are typed in
# URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: ncurses-32
name=readline-32
version=6.2.4
release=1
source=(http://ftp.gnu.org/gnu/readline/readline-${version::3}.tar.gz \
readline-$version.patch.gz inputrc)
build() {
cd readline-${version::3}
gunzip -c $SRC/readline-$version.patch.gz | patch -p0
# Don't use rpath for linking the shared libs
sed -i '117s/-Wl,-rpath,$(libdir)//' support/shobj-conf
./configure --prefix=/usr --mandir=/usr/man --libdir=/usr/lib32
make SHLIB_LIBS=-lncurses
make DESTDIR=$PKG install
install -d $PKG/lib32
mv $PKG/usr/lib32/lib*.so.* $PKG/lib32
ln -sf ../../lib32/libhistory.so.${version::3} $PKG/usr/lib32/libhistory.so
ln -sf ../../lib32/libreadline.so.${version::3} $PKG/usr/lib32/libreadline.so
install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
rm -r $PKG/usr/{bin,man,include,share} $PKG/etc
}