From e254e2f7f07a0ac55a11625d2cc8eadf17566203 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 5 Dec 2009 05:16:40 +0100 Subject: [PATCH] Added ncursesw-5.7 build template. --HG-- extra : convert_revision : 6486ec973735de53e460a752f7a718aada4baed3 --- srcpkgs/ncursesw-devel | 1 + srcpkgs/ncursesw/depends | 2 ++ srcpkgs/ncursesw/ncursesw-devel.template | 21 +++++++++++++++ srcpkgs/ncursesw/template | 34 ++++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 120000 srcpkgs/ncursesw-devel create mode 100644 srcpkgs/ncursesw/depends create mode 100644 srcpkgs/ncursesw/ncursesw-devel.template create mode 100644 srcpkgs/ncursesw/template diff --git a/srcpkgs/ncursesw-devel b/srcpkgs/ncursesw-devel new file mode 120000 index 0000000000..febe7c25a1 --- /dev/null +++ b/srcpkgs/ncursesw-devel @@ -0,0 +1 @@ +ncursesw \ No newline at end of file diff --git a/srcpkgs/ncursesw/depends b/srcpkgs/ncursesw/depends new file mode 100644 index 0000000000..e51aa90cac --- /dev/null +++ b/srcpkgs/ncursesw/depends @@ -0,0 +1,2 @@ +abi_depends=">=5.6" +api_depends="${abi_depends}" diff --git a/srcpkgs/ncursesw/ncursesw-devel.template b/srcpkgs/ncursesw/ncursesw-devel.template new file mode 100644 index 0000000000..5bdf978029 --- /dev/null +++ b/srcpkgs/ncursesw/ncursesw-devel.template @@ -0,0 +1,21 @@ +# Template file for 'ncursesw-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development: headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run ncurses-devel +Add_dependency run ncursesw + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mkdir -p ${DESTDIR}/usr/bin + + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib + cd ${DESTDIR}/usr/lib && ln -s libncursesw.so.5 libncursesw.so + mv ${SRCPKGDESTDIR}/usr/bin/ncursesw5* ${DESTDIR}/usr/bin +} diff --git a/srcpkgs/ncursesw/template b/srcpkgs/ncursesw/template new file mode 100644 index 0000000000..b5f5451f5c --- /dev/null +++ b/srcpkgs/ncursesw/template @@ -0,0 +1,34 @@ +# Template build file for 'ncursesw'. +pkgname=ncursesw +version=5.7 +wrksrc="ncurses-${version}" +distfiles="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-$version.tar.gz" +build_style=gnu_configure +configure_args="--with-install-prefix=$XBPS_DESTDIR/$pkgname-$version + --with-shared --without-debug --enable-widec + --includedir=/usr/include/ncursesw" +make_install_target="install.includes install.libs" +short_desc="Shared libraries for terminal handling (wide character)" +maintainer="Juan RP " +checksum=0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4 +long_desc=" + The ncurses (new curses) library is a freeware emulation of System V Release + 4.0 curses. It uses terminfo format, supports pads and color and multiple + highlights and forms characters and function-key mapping, and has all the + other SYSV-curses enhancements over BSD curses. The distribution includes + the library and support utilities, including a terminfo compiler tic, a + ecompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo. + Full manual pages are provided for the library and tools." + +subpackages="$pkgname-devel" +Add_dependency run glibc + +post_install() +{ + rm -f ${DESTDIR}/usr/lib/lib*.so + rm -f ${DESTDIR}/usr/lib/libncursesw.so.5 + mkdir -p ${DESTDIR}/lib + mv ${DESTDIR}/usr/lib/libncursesw.so.5.7 ${DESTDIR}/lib + cd ${DESTDIR}/usr/lib && \ + ln -sf ../../lib/libncursesw.so.5.7 libncursesw.so.5 +}