readline: fix install; enable static.

This commit is contained in:
Juan RP 2013-03-25 20:06:55 +01:00
parent 0f0b91e2f7
commit dc28039bcf
2 changed files with 8 additions and 3 deletions

View File

@ -2,9 +2,9 @@
# #
depends="ncurses-devel readline>=${version}" depends="ncurses-devel readline>=${version}"
short_desc="${short_desc} - development files" short_desc="${short_desc} - development files"
noarch=yes
do_install() { do_install() {
vmove usr/include usr vmove usr/include usr
vmove usr/share usr vmove usr/share usr
vmove "usr/lib/*.a" usr/lib
} }

View File

@ -3,12 +3,12 @@ pkgname=readline
_dist_ver=6.2 _dist_ver=6.2
_patch_ver=004 _patch_ver=004
version=${_dist_ver}.${_patch_ver} version=${_dist_ver}.${_patch_ver}
revision=2 revision=3
#version=${_dist_ver} #version=${_dist_ver}
wrksrc=${pkgname}-${_dist_ver} wrksrc=${pkgname}-${_dist_ver}
subpackages="$pkgname-devel" subpackages="$pkgname-devel"
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-static --with-curses --enable-multibyte" configure_args="--enable-static --with-curses --enable-multibyte"
make_build_args="SHLIB_LIBS=-lncurses" make_build_args="SHLIB_LIBS=-lncurses"
makedepends="ncurses-devel" makedepends="ncurses-devel"
short_desc="The GNU Readline Library" short_desc="The GNU Readline Library"
@ -35,4 +35,9 @@ pre_configure() {
msg_normal " Applying patch readline62-$p.\n" msg_normal " Applying patch readline62-$p.\n"
done done
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
sed -i 's,@INSTALL_DATA@,install -m755,' shlib/Makefile.in
}
post_install() {
chmod 755 ${DESTDIR}/usr/lib/*.so*
} }