wok-next view ncurses/receipt @ rev 15363
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 03 09:52:57 2013 +0000 (2013-10-03) |
parents | 851050970033 |
children | 23c3aed67cd9 |
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 WEB_SITE="http://invisible-island.net/ncurses/"
10 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
11 HOST_ARCH="i486 arm"
13 DEPENDS="ncurses-common"
14 BUILD_DEPENDS=""
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
20 # when cross compiling we can't use the freshly cooked binary. See cook log:
21 #
22 #** Building terminfo database, please wait...
23 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
24 #
25 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
26 echo "Installing: ncursesw-extra"
27 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
28 fi
29 cd $src
30 mkdir -p $DESTDIR/usr/lib/terminfo
31 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
32 include/Makefile.in
33 ./configure \
34 --libdir=/lib \
35 --sysconfdir=/etc \
36 --with-shared \
37 --without-debug \
38 --without-ada \
39 --with-build-cc="gcc -D_GNU_SOURCE" \
40 $CONFIGURE_ARGS &&
41 make && make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/lib
48 cp -a $install/lib/libncurses.so* $fs/lib
49 }