From 61b7bc81ce2b311071f1e8f8d88bb0d61132be4d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 May 2010 18:44:44 +0200 Subject: [PATCH] Added ncurses32-5.7 build template. --- srcpkgs/ncurses32-devel | 1 + srcpkgs/ncurses32/ncurses32-devel.template | 15 +++++++ srcpkgs/ncurses32/template | 48 ++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 120000 srcpkgs/ncurses32-devel create mode 100644 srcpkgs/ncurses32/ncurses32-devel.template create mode 100644 srcpkgs/ncurses32/template diff --git a/srcpkgs/ncurses32-devel b/srcpkgs/ncurses32-devel new file mode 120000 index 0000000000..e0376e3a27 --- /dev/null +++ b/srcpkgs/ncurses32-devel @@ -0,0 +1 @@ +ncurses32 \ No newline at end of file diff --git a/srcpkgs/ncurses32/ncurses32-devel.template b/srcpkgs/ncurses32/ncurses32-devel.template new file mode 100644 index 0000000000..4d03be9b65 --- /dev/null +++ b/srcpkgs/ncurses32/ncurses32-devel.template @@ -0,0 +1,15 @@ +# Template file for 'ncurses32-devel'. +# +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc32-devel +Add_dependency run ncurses32 + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib32 + mv ${SRCPKGDESTDIR}/usr/lib32/*.a ${DESTDIR}/usr/lib32 +} diff --git a/srcpkgs/ncurses32/template b/srcpkgs/ncurses32/template new file mode 100644 index 0000000000..f318abc475 --- /dev/null +++ b/srcpkgs/ncurses32/template @@ -0,0 +1,48 @@ +# Template file for 'ncurses32' +pkgname=ncurses32 +version=5.7 +distfiles=" +http://xbps.nopcode.org/repos/stable/i686/ncurses-libs-${version}_1.i686.xbps +http://xbps.nopcode.org/repos/stable/i686/ncurses-devel-${version}_2.i686.xbps +http://xbps.nopcode.org/repos/stable/i686/ncursesw-${version}_1.i686.xbps +http://xbps.nopcode.org/repos/stable/i686/ncursesw-devel-${version}_1.i686.xbps" +build_style=custom-install +short_desc="A System V Release 4.0 curses emulation library (32 bits)" +maintainer="Juan RP " +checksum=" +0470e12a72e923b8983a314b7f35c909ac3ec6c2ac8467d831d2cb24c506edd2 +b0d842501144406ad3f5b761908070058d5467ca976534bbf39dfa8918859cb9 +49a906ccec204c543db152e109a09e89d1aa0382c3c473dc791341a93f5aa36b +18777c0f140b3052099d5cae9a96628403322aa9af3b3d11241bb80b40d81603" +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. + + This package installs the ncurses and ncursesw 32 bit libraries for + x86_64 systems." + +subpackages="$pkgname-devel" +nostrip=yes +noextract=yes +noverifyrdeps=yes +only_for_archs=x86_64 + +Add_dependency run glibc32 +Add_dependency build bsdtar + +do_install() +{ + for f in ${distfiles}; do + local srcfile="${XBPS_SRCDISTDIR}/$(basename ${f})" + bsdtar xf ${srcfile} -C ${wrksrc} || return 1 + done + + install -d ${DESTDIR}/lib32 ${DESTDIR}/usr/lib32 + cp -a ${wrksrc}/lib/*.so* ${DESTDIR}/lib32 + cp -a ${wrksrc}/usr/lib/*.{a,so*} ${DESTDIR}/usr/lib32 +}