rev |
line source |
pankso@4884
|
1 # SliTaz package receipt.
|
pankso@4884
|
2
|
pankso@4884
|
3 PACKAGE="ncursesw"
|
Hans-G?nter@23231
|
4 VERSION="6.2"
|
pankso@4884
|
5 CATEGORY="base-system"
|
pankso@4884
|
6 SHORT_DESC="Library of functions to manage display on terminals."
|
pankso@4884
|
7 MAINTAINER="pankso@slitaz.org"
|
pascal@15601
|
8 LICENSE="MIT"
|
Hans-G?nter@21526
|
9 WEB_SITE="https://www.gnu.org/software/ncurses/ncurses.html"
|
Hans-G?nter@21526
|
10
|
Hans-G?nter@21526
|
11 SOURCE="ncurses"
|
pankso@4884
|
12 TARBALL="$SOURCE-$VERSION.tar.gz"
|
Hans-G?nter@21526
|
13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
|
pankso@12773
|
14
|
pankso@12773
|
15 DEPENDS="ncurses-common"
|
Hans-G?nter@21526
|
16 BUILD_DEPENDS=""
|
Hans-G?nter@21526
|
17
|
Hans-G?nter@21526
|
18 HOST_ARCH="i486 arm"
|
pankso@4884
|
19
|
pankso@12915
|
20 case "$ARCH" in
|
pankso@12915
|
21 arm) BUILD_DEPENDS="" ;;
|
pankso@12915
|
22 esac
|
pankso@12915
|
23
|
pankso@4884
|
24 # Rules to configure and make the package.
|
pankso@4884
|
25 compile_rules()
|
pankso@4884
|
26 {
|
Hans-G?nter@21526
|
27 # Ncurses need an installed /usr/bin/tic which is in ncursesw-extra. And
|
pankso@12774
|
28 # when cross compiling we can't use the freshly cooked binary. See cook log:
|
pankso@12774
|
29 #
|
pankso@12774
|
30 #** Building terminfo database, please wait...
|
pankso@12774
|
31 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
|
pankso@12774
|
32 #
|
Hans-G?nter@22369
|
33 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]
|
Hans-G?nter@22369
|
34 then
|
pankso@12792
|
35 echo "Installing: ncursesw-extra"
|
pankso@12792
|
36 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
|
pankso@12774
|
37 fi
|
Hans-G?nter@21526
|
38
|
pascal@15083
|
39 mkdir -p $DESTDIR/usr/lib/terminfo
|
Hans-G?nter@21526
|
40
|
Hans-G?nter@21526
|
41 # search string not in file (6.1)
|
Hans-G?nter@21526
|
42 # sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
|
Hans-G?nter@21526
|
43 # include/Makefile.in
|
Hans-G?nter@21526
|
44
|
Hans-G?nter@21526
|
45 ./configure \
|
Hans-G?nter@21526
|
46 --libdir=/lib \
|
Hans-G?nter@21526
|
47 --sysconfdir=/etc \
|
Hans-G?nter@21526
|
48 --with-shared \
|
Hans-G?nter@21526
|
49 --without-debug \
|
Hans-G?nter@21526
|
50 --without-ada \
|
Hans-G?nter@21526
|
51 --enable-widec \
|
Hans-G?nter@21526
|
52 --with-build-cc="gcc -D_GNU_SOURCE" \
|
Hans-G?nter@21526
|
53 --enable-pc-files \
|
pankso@12773
|
54 $CONFIGURE_ARGS &&
|
Hans-G?nter@23231
|
55 # 6.2
|
Hans-G?nter@23231
|
56 sed -i '186s|TICDIR "!= |TICDIR " != |' \
|
Hans-G?nter@22369
|
57 misc/run_tic.sh &&
|
Hans-G?nter@21526
|
58 make &&
|
Hans-G?nter@21526
|
59 make install
|
pankso@4884
|
60 }
|
pankso@4884
|
61
|
pankso@4884
|
62 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pankso@4884
|
63 genpkg_rules()
|
pankso@4884
|
64 {
|
Hans-G?nter@21526
|
65 mkdir -p $fs/lib
|
Hans-G?nter@21526
|
66 mkdir -p $fs/usr/bin
|
pankso@12773
|
67
|
Hans-G?nter@21526
|
68 # Libraries
|
Hans-G?nter@23231
|
69 cp -a $install/lib/libncursesw.so* $fs/lib
|
pankso@12773
|
70
|
Hans-G?nter@21526
|
71 # Base programs
|
Hans-G?nter@21526
|
72 cp $install/usr/bin/clear $fs/usr/bin
|
Hans-G?nter@21526
|
73 cp $install/usr/bin/tset $fs/usr/bin
|
Hans-G?nter@21526
|
74 cp $install/usr/bin/reset $fs/usr/bin
|
pankso@4884
|
75 }
|
pascal@8878
|
76
|
pascal@8878
|
77 # Overlap busybox
|
pascal@8878
|
78 pre_install()
|
pascal@8878
|
79 {
|
pankso@12773
|
80 rm -f $root/usr/bin/clear
|
pankso@12773
|
81 rm -f $root/usr/bin/reset
|
pascal@8878
|
82 }
|
pascal@8878
|
83
|
pascal@8878
|
84 post_remove()
|
pascal@8878
|
85 {
|
pankso@12773
|
86 ln -s /bin/busybox $root/usr/bin/clear
|
pankso@12773
|
87 ln -s /bin/busybox $root/usr/bin/reset
|
pascal@8878
|
88 }
|