wok annotate ncurses/receipt @ rev 1487
ncurses: fix a weird /bin/sh bug
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 05 10:42:43 2008 +0000 (2008-10-05) |
parents | dbd9d5cecd6b |
children | f6c953fb3a61 |
rev | line source |
---|---|
pankso@7 | 1 # SliTaz package receipt. |
pankso@7 | 2 |
pankso@7 | 3 PACKAGE="ncurses" |
pankso@7 | 4 VERSION="5.6" |
pankso@210 | 5 CATEGORY="base-system" |
pankso@7 | 6 SHORT_DESC="Library of functions to manage display on teminals." |
pankso@7 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@7 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@7 | 9 WEB_SITE="http://invisible-island.net/ncurses/" |
pankso@7 | 10 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL" |
pankso@7 | 11 |
pankso@7 | 12 # Rules to configure and make the package. |
pankso@7 | 13 compile_rules() |
pankso@7 | 14 { |
pankso@7 | 15 cd $PACKAGE-$VERSION |
pascal@1487 | 16 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ |
pascal@1487 | 17 include/Makefile.in |
pankso@7 | 18 ./configure --prefix=/usr \ |
pankso@7 | 19 --libdir=/lib --sysconfdir=/etc \ |
pankso@7 | 20 --infodir=/usr/share/info --mandir=/usr/share/man \ |
pankso@7 | 21 --with-shared --without-debug --without-ada \ |
pascal@1487 | 22 $CONFIGURE_ARGS && |
pascal@1487 | 23 make && |
pankso@7 | 24 make DESTDIR=$PWD/_pkg install |
pankso@7 | 25 } |
pankso@7 | 26 |
pankso@7 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@7 | 28 genpkg_rules() |
pankso@7 | 29 { |
pankso@7 | 30 mkdir -p $fs/lib $fs/usr/bin |
pankso@7 | 31 |
pankso@7 | 32 # Libs. |
pankso@7 | 33 cp -a $_pkg/lib/libncurses.so* $fs/lib |
pankso@7 | 34 strip --strip-unneeded $fs/lib/*.so* |
pankso@7 | 35 |
pankso@7 | 36 # Base progs. |
pankso@7 | 37 cp $_pkg/usr/bin/clear $fs/usr/bin |
pankso@7 | 38 cp $_pkg/usr/bin/tset $fs/usr/bin |
pankso@7 | 39 cp $_pkg/usr/bin/reset $fs/usr/bin |
pankso@7 | 40 |
pankso@7 | 41 # Terminfo. |
pankso@7 | 42 mkdir -p $fs/usr/share/terminfo |
pankso@7 | 43 for dir in a l r v x |
pankso@7 | 44 do |
pankso@7 | 45 mkdir $fs/usr/share/terminfo/$dir |
pankso@7 | 46 done |
pankso@7 | 47 cp $_pkg/usr/share/terminfo/a/ansi \ |
pankso@7 | 48 $fs/usr/share/terminfo/a |
pankso@7 | 49 cp $_pkg/usr/share/terminfo/l/linux \ |
pankso@7 | 50 $fs/usr/share/terminfo/l |
pankso@7 | 51 cp $_pkg/usr/share/terminfo/r/rxvt \ |
pankso@7 | 52 $fs/usr/share/terminfo/r |
pankso@7 | 53 cp $_pkg/usr/share/terminfo/x/xterm \ |
pankso@7 | 54 $fs/usr/share/terminfo/x |
pankso@7 | 55 cp $_pkg/usr/share/terminfo/x/xterm-color \ |
pankso@7 | 56 $fs/usr/share/terminfo/x |
pankso@7 | 57 cp $_pkg/usr/share/terminfo/x/xterm-new \ |
pankso@7 | 58 $fs/usr/share/terminfo/x |
pankso@7 | 59 cp $_pkg/usr/share/terminfo/x/xterm-vt220 \ |
pankso@7 | 60 $fs/usr/share/terminfo/x |
pankso@7 | 61 cp $_pkg/usr/share/terminfo/v/vt100 \ |
pankso@7 | 62 $fs/usr/share/terminfo/v |
pankso@7 | 63 cp $_pkg/usr/share/terminfo/v/vt102* \ |
pankso@7 | 64 $fs/usr/share/terminfo/v |
pankso@7 | 65 |
pankso@7 | 66 # Tabset. |
pankso@7 | 67 cp -a $_pkg/usr/share/tabset $fs/usr/share |
pankso@7 | 68 } |