readline: convert to the new template format.

This commit is contained in:
Juan RP 2013-04-10 15:04:53 +02:00
parent 2d204106e1
commit 20ab3a974f
2 changed files with 17 additions and 11 deletions

View file

@ -1,10 +0,0 @@
# Template file for 'readline-devel'.
#
depends="ncurses-devel readline>=${version}"
short_desc="${short_desc} - development files"
do_install() {
vmove usr/include usr
vmove usr/share usr
vmove "usr/lib/*.a" usr/lib
}

View file

@ -6,7 +6,6 @@ version=${_dist_ver}.${_patch_ver}
revision=3
#version=${_dist_ver}
wrksrc=${pkgname}-${_dist_ver}
subpackages="$pkgname-devel"
build_style=gnu-configure
configure_args="--enable-static --with-curses --enable-multibyte"
make_build_args="SHLIB_LIBS=-lncurses"
@ -38,3 +37,20 @@ pre_configure() {
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() {
vmove usr/include usr
vmove usr/share usr
vmove "usr/lib/*.a" usr/lib
}
}
readline_package() {
pkg_install() {
vmove "*"
}
}