2009-03-12 05:27:23 +01:00
|
|
|
# Template build file for 'readline'.
|
2008-11-26 15:45:08 +01:00
|
|
|
pkgname=readline
|
2014-02-27 06:18:59 +01:00
|
|
|
_dist_ver=6.3
|
2014-05-26 23:21:40 +02:00
|
|
|
_patch_ver=006
|
2011-11-24 07:57:26 +01:00
|
|
|
version=${_dist_ver}.${_patch_ver}
|
2014-04-04 12:07:54 +02:00
|
|
|
revision=1
|
2009-10-09 10:17:52 +02:00
|
|
|
wrksrc=${pkgname}-${_dist_ver}
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-27 15:14:43 +01:00
|
|
|
configure_args="--with-curses --enable-multibyte"
|
|
|
|
make_build_args="SHLIB_LIBS=-lncurses"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="ncurses-devel"
|
2008-11-26 15:45:08 +01:00
|
|
|
short_desc="The GNU Readline Library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-01-31 12:39:48 +01:00
|
|
|
homepage="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
|
|
|
|
license="GPL-3"
|
2013-02-06 21:00:02 +01:00
|
|
|
distfiles="http://ftp.gnu.org/gnu/readline/${pkgname}-${_dist_ver}.tar.gz"
|
2014-02-27 06:18:59 +01:00
|
|
|
checksum=56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
|
2008-11-26 15:45:08 +01:00
|
|
|
|
2014-02-27 15:14:43 +01:00
|
|
|
LDFLAGS="-lncurses"
|
|
|
|
|
2012-01-30 17:04:41 +01:00
|
|
|
pre_configure() {
|
|
|
|
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-${_dist_ver}-patches"
|
2009-10-17 03:16:09 +02:00
|
|
|
|
2014-04-04 12:07:54 +02:00
|
|
|
cd ${XBPS_SRCDISTDIR}/${pkgname}-${version}
|
2009-10-09 10:17:52 +02:00
|
|
|
if [ "${_patch_ver}" -gt 000 ]; then
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
2014-04-04 12:07:54 +02:00
|
|
|
if [ -f readline63-${p} ]; then
|
2013-03-25 21:25:47 +01:00
|
|
|
continue
|
|
|
|
fi
|
2014-04-04 12:07:54 +02:00
|
|
|
msg_normal " Fetching $url/readline63-$p ...\n"
|
|
|
|
$XBPS_FETCH_CMD ${url}/readline63-$p
|
2009-10-09 10:17:52 +02:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
cd ${wrksrc}
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
2014-04-04 12:07:54 +02:00
|
|
|
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/${pkgname}-${version}/readline63-${p}
|
|
|
|
msg_normal " Applying patch readline63-$p.\n"
|
2009-10-09 10:17:52 +02:00
|
|
|
done
|
|
|
|
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
|
|
|
|
}
|
2013-04-10 15:04:53 +02:00
|
|
|
|
2014-02-27 14:55:48 +01:00
|
|
|
readline-devel_package() {
|
2014-02-27 06:18:59 +01:00
|
|
|
depends="ncurses-devel ${sourcepkg}>=${version}_${revision}"
|
2013-04-10 15:04:53 +02:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
2013-04-10 16:50:24 +02:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-27 06:18:59 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 15:04:53 +02:00
|
|
|
}
|
|
|
|
}
|