ncurses: fix depends in subpkgs and modernize.

This commit is contained in:
Juan RP 2013-04-07 02:00:23 +02:00
parent 96bda04672
commit a99b3ebf5a
5 changed files with 12 additions and 35 deletions

View file

@ -1,15 +1,9 @@
# Template file for 'ncurses-base'.
#
short_desc="${sourcepkg} base files"
long_desc="${long_desc}
This package contains the base files."
short_desc="${short_desc} -- base terminfo files"
noarch=yes
noverifyrdeps=yes
do_install()
{
do_install() {
cat $XBPS_SRCPKGDIR/ncurses/base-files | while read line; do
if [ -f ${SRCPKGDESTDIR}/${line} ]; then
install -D -m644 ${SRCPKGDESTDIR}/${line} \

View file

@ -1,15 +1,10 @@
# Template file for 'ncurses-devel'.
#
depends="glibc-devel ncurses"
short_desc="${sourcepkg} development files"
long_desc="${long_desc}
This package contains files for development: headers, static libs, etc."
depends="ncurses-libs>=${version}"
short_desc="${short_desc} -- development files"
replaces="ncursesw-devel>=0"
do_install()
{
do_install() {
mkdir -p ${DESTDIR}/usr/lib
mkdir -p ${DESTDIR}/usr/bin
mkdir -p ${DESTDIR}/usr/share/man/man1

View file

@ -1,11 +1,6 @@
# Template file for 'ncurses-libs'.
#
depends="ncurses-base"
short_desc="${sourcepkg} shared libraries"
long_desc="${long_desc}
This package contains the shared libraries."
short_desc="${short_desc} -- shared libraries"
replaces="ncursesw>=0"
do_install() {

View file

@ -1,17 +1,10 @@
# Template file for 'ncurses-term'.
#
depends="ncurses-base"
short_desc="${sourcepkg} full terminal descriptions"
long_desc="${long_desc}
This package contains all available terminal descriptions."
depends="ncurses-base>=${version}"
short_desc="${short_desc} -- full terminal descriptions"
noarch=yes
noverifyrdeps=yes
do_install()
{
do_install() {
mkdir -p ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/share/tabset ${DESTDIR}/usr/share

View file

@ -1,7 +1,7 @@
# Template build file for 'ncurses'.
pkgname=ncurses
version=5.9
revision=4
revision=5
short_desc="A System V Release 4.0 curses emulation library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnu.org/software/ncurses/"
@ -17,7 +17,7 @@ long_desc="
ecompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo.
Full manual pages are provided for the library and tools."
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
if [ "$XBPS_CROSS_BUILD" ]; then
subpackages="ncurses-devel ncurses-libs"
else
subpackages="ncurses-base ncurses-devel ncurses-libs ncurses-term"
@ -54,7 +54,7 @@ do_build() {
do_install() {
cd ${wrksrc}/ncursesw-build
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
if [ "$XBPS_CROSS_BUILD" ]; then
sed -e "s#install : install.data install.libs#install: install.libs#g" -i misc/Makefile
fi
make DESTDIR=${DESTDIR} install