readline: update to 6.3 patchlevel 003.

This commit is contained in:
Juan RP 2014-04-04 12:07:54 +02:00
parent 9a1622133d
commit 40662e5e00

View file

@ -1,9 +1,9 @@
# Template build file for 'readline'.
pkgname=readline
_dist_ver=6.3
_patch_ver=000
_patch_ver=003
version=${_dist_ver}.${_patch_ver}
revision=2
revision=1
wrksrc=${pkgname}-${_dist_ver}
build_style=gnu-configure
configure_args="--with-curses --enable-multibyte"
@ -21,20 +21,20 @@ LDFLAGS="-lncurses"
pre_configure() {
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-${_dist_ver}-patches"
cd ${XBPS_SRCDISTDIR}/${pkgname}-${version}
if [ "${_patch_ver}" -gt 000 ]; then
for p in $(seq -w 001 ${_patch_ver}); do
cd ${XBPS_SRCDISTDIR}
if [ -f ${XBPS_SRCDISTDIR}/readline62-${p} ]; then
if [ -f readline63-${p} ]; then
continue
fi
msg_normal " Fetching $url/readline62-$p ...\n"
$XBPS_FETCH_CMD ${url}/readline62-$p
msg_normal " Fetching $url/readline63-$p ...\n"
$XBPS_FETCH_CMD ${url}/readline63-$p
done
fi
cd ${wrksrc}
for p in $(seq -w 001 ${_patch_ver}); do
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/readline62-${p}
msg_normal " Applying patch readline62-$p.\n"
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/${pkgname}-${version}/readline63-${p}
msg_normal " Applying patch readline63-$p.\n"
done
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
}