From c7fbe1ff89321b170526cfb7728a18cc35a80ad0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 18 Apr 2013 15:18:18 +0200 Subject: [PATCH] ncurses: fix cross build. --- srcpkgs/ncurses/template | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/srcpkgs/ncurses/template b/srcpkgs/ncurses/template index 4e7ee526166..70548076484 100644 --- a/srcpkgs/ncurses/template +++ b/srcpkgs/ncurses/template @@ -98,30 +98,6 @@ ncurses_package() { } } -ncurses-base_package() { - short_desc+=" -- base terminfo files" - noarch=yes - - pkg_install() { - cat ${FILESDIR}/base-files | while read line; do - vmove ${line} - done - } -} - -ncurses-term_package() { - depends="ncurses-base>=${version}" - short_desc+=" -- full terminal descriptions" - noarch=yes - - pkg_install() { - vmove usr/share/tabset - vmove usr/share/terminfo - } -} - -if [ -z "$CROSS_BUILD" ]; then - ncurses-libs_package() { short_desc+=" -- shared libraries" replaces="ncursesw>=0" @@ -144,4 +120,28 @@ ncurses-devel_package() { } } -fi +if [ -z "$CROSS_BUILD" ]; then + +ncurses-base_package() { + short_desc+=" -- base terminfo files" + noarch=yes + + pkg_install() { + cat ${FILESDIR}/base-files | while read line; do + vmove ${line} + done + } +} + +ncurses-term_package() { + depends="ncurses-base>=${version}" + short_desc+=" -- full terminal descriptions" + noarch=yes + + pkg_install() { + vmove usr/share/tabset + vmove usr/share/terminfo + } +} + +fi # !CROSS_BUILD