wok-current view ncurses/receipt @ rev 15601

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 05 20:23:08 2013 +0000 (2013-12-05)
parents c971db4d1bba
children b7f4c5ebbd6a
line source
1 # SliTaz package receipt.
3 PACKAGE="ncurses"
4 VERSION="5.9"
5 CATEGORY="base-system"
6 SHORT_DESC="Library of functions to manage display on terminals."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 LICENSE="MIT"
10 WEB_SITE="http://invisible-island.net/ncurses/"
11 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="ncurses-common"
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
21 # when cross compiling we can't use the freshly cooked binary. See cook log:
22 #
23 #** Building terminfo database, please wait...
24 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
25 #
26 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
27 echo "Installing: ncursesw-extra"
28 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
29 fi
30 cd $src
31 mkdir -p $DESTDIR/usr/lib/terminfo
32 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
33 include/Makefile.in
34 ./configure \
35 --libdir=/lib \
36 --sysconfdir=/etc \
37 --with-shared \
38 --without-debug \
39 --without-ada \
40 --with-build-cc="gcc -D_GNU_SOURCE" \
41 $CONFIGURE_ARGS &&
42 make && make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/lib
49 cp -a $install/lib/libncurses.so* $fs/lib
50 }