void-packages/srcpkgs/readline/template

52 lines
1.5 KiB
Text
Raw Normal View History

# Template build file for 'readline'.
pkgname=readline
2014-02-27 05:18:59 +00:00
_dist_ver=6.3
2014-05-26 21:21:40 +00:00
_patch_ver=006
version=${_dist_ver}.${_patch_ver}
revision=1
wrksrc=${pkgname}-${_dist_ver}
build_style=gnu-configure
configure_args="--with-curses --enable-multibyte"
make_build_args="SHLIB_LIBS=-lncurses"
makedepends="ncurses-devel"
short_desc="The GNU Readline Library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
license="GPL-3"
distfiles="http://ftp.gnu.org/gnu/readline/${pkgname}-${_dist_ver}.tar.gz"
2014-02-27 05:18:59 +00:00
checksum=56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
LDFLAGS="-lncurses"
2012-01-30 16:04:41 +00:00
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
if [ -f readline63-${p} ]; then
continue
fi
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}/${pkgname}-${version}/readline63-${p}
msg_normal " Applying patch readline63-$p.\n"
done
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
}
readline-devel_package() {
2014-02-27 05:18:59 +00:00
depends="ncurses-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
2013-04-10 14:50:24 +00:00
vmove usr/include
vmove usr/share
vmove "usr/lib/*.a"
2014-02-27 05:18:59 +00:00
vmove "usr/lib/*.so"
}
}