void-packages/srcpkgs/readline/template

51 lines
1.4 KiB
Plaintext
Raw Normal View History

# Template build file for 'readline'.
pkgname=readline
2011-02-14 16:11:13 +01:00
_dist_ver=6.2
_patch_ver=004
version=${_dist_ver}.${_patch_ver}
2013-03-25 20:06:55 +01:00
revision=3
#version=${_dist_ver}
wrksrc=${pkgname}-${_dist_ver}
build_style=gnu-configure
2013-03-25 20:06:55 +01:00
configure_args="--enable-static --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"
checksum=79a696070a058c233c72dd6ac697021cc64abd5ed51e59db867d66d196a89381
2012-01-30 17:04:41 +01:00
pre_configure() {
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-${_dist_ver}-patches"
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
continue
fi
2012-01-30 17:04:41 +01:00
msg_normal " Fetching $url/readline62-$p ...\n"
$XBPS_FETCH_CMD ${url}/readline62-$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"
done
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
}
readline-devel_package() {
depends="ncurses-devel readline>=${version}"
short_desc+=" - development files"
pkg_install() {
2013-04-10 16:50:24 +02:00
vmove usr/include
vmove usr/share
vmove "usr/lib/*.a"
}
}