wok-next annotate ncurses/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 250165915708 |
children | e7a485521d6a |
rev | line source |
---|---|
al@19743 | 1 # SliTaz package receipt v2. |
pankso@7 | 2 |
pankso@7 | 3 PACKAGE="ncurses" |
al@19561 | 4 VERSION="6.0" |
pankso@210 | 5 CATEGORY="base-system" |
al@19743 | 6 SHORT_DESC="Manage display on terminals" |
pankso@7 | 7 MAINTAINER="pankso@slitaz.org" |
al@19561 | 8 LICENSE="MIT" |
al@19561 | 9 WEB_SITE="https://www.gnu.org/software/ncurses/" |
al@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/ncurses.html" |
al@19561 | 11 |
pankso@7 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19561 | 13 WGET_URL="http://ftp.gnu.org/gnu/ncurses/$TARBALL" |
pankso@12773 | 14 |
al@20436 | 15 BUILD_DEPENDS_arm=" " |
al@19561 | 16 BUILD_DEPENDS="flex" |
al@19574 | 17 SPLIT="ncurses-libform ncurses-libmenu ncurses-libpanel ncurses-extra \ |
al@19574 | 18 ncurses-dev" |
al@19561 | 19 |
al@20436 | 20 compile_rules() { |
al@19574 | 21 sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in |
al@19561 | 22 |
pascal@17385 | 23 ./configure \ |
pankso@4884 | 24 --with-shared \ |
pascal@17384 | 25 --without-debug \ |
pascal@17384 | 26 --without-ada \ |
al@19561 | 27 --enable-widec \ |
pascal@17385 | 28 --with-build-cc="gcc -D_GNU_SOURCE" \ |
al@19542 | 29 --enable-pc-files \ |
al@19561 | 30 --with-pkg-config-libdir=/usr/lib/pkgconfig \ |
pascal@17384 | 31 $CONFIGURE_ARGS && |
pascal@17384 | 32 make && make install |
al@19574 | 33 |
al@19574 | 34 mkdir -p $install/lib |
al@19574 | 35 mv $install/usr/lib/libncursesw.so.6* $install/lib |
al@19574 | 36 ln -sf ../../lib/$(readlink $install/usr/lib/libncursesw.so) \ |
al@19574 | 37 $install/usr/lib/libncursesw.so |
al@19574 | 38 |
al@19574 | 39 for i in ncurses form panel menu; do |
al@19574 | 40 rm -f $install/usr/lib/lib$i.so |
al@19574 | 41 echo "INPUT(-l${i}w)" > $install/usr/lib/lib$i.so |
al@19574 | 42 chmod 755 $install/usr/lib/lib$i.so |
al@19574 | 43 ln -sf ${i}w.pc $install/usr/lib/pkgconfig/$i.pc |
al@19574 | 44 done |
al@19574 | 45 |
al@19574 | 46 rm -f $install/usr/lib/libcursesw.so |
al@19574 | 47 echo "INPUT(-lncursesw)" > $install/usr/lib/libcursesw.so |
al@19574 | 48 chmod 755 $install/usr/lib/libcursesw.so |
al@19574 | 49 ln -sf libncurses.so $install/usr/lib/libcurses.so |
al@19574 | 50 |
al@19574 | 51 mkdir -p $install/usr/share/doc/ncurses-$VERSION |
al@19574 | 52 cp -a doc/* $install/usr/share/doc/ncurses-$VERSION |
al@19880 | 53 |
al@19880 | 54 # Fix F-keys in the terminal |
al@19880 | 55 for i in xterm xterm-256color; do |
al@19880 | 56 mv $install/usr/share/terminfo/x/$i $install/usr/share/terminfo/x/$i.orig |
al@19880 | 57 done |
al@19880 | 58 $install/usr/bin/tic $stuff/xterm-patched -o $install/usr/share/terminfo |
al@19880 | 59 ln -s xterm-256color $install/usr/share/terminfo/x/xterm |
pankso@7 | 60 } |
pankso@7 | 61 |
al@20436 | 62 genpkg_rules() { |
al@19743 | 63 case $PACKAGE in |
al@19743 | 64 ncurses) |
al@19743 | 65 copy clear tset reset libncursesw.so* tabset/ \ |
al@19880 | 66 linux xterm xterm-256color |
al@19880 | 67 # ansi rxvt vt100 vt102* xterm-color xterm-new xterm-vt220 |
al@20436 | 68 TAGS="LFS" |
al@19743 | 69 ;; |
al@19743 | 70 ncurses-libform) |
al@19743 | 71 copy libformw.so* |
al@19743 | 72 CAT="libs|forms extension" |
al@19743 | 73 DEPENDS="ncurses" |
al@19743 | 74 ;; |
al@19743 | 75 ncurses-libmenu) |
al@19743 | 76 copy libmenuw.so* |
al@19743 | 77 CAT="libs|menus extension" |
al@19743 | 78 DEPENDS="ncurses" |
al@19743 | 79 ;; |
al@19743 | 80 ncurses-libpanel) |
al@19743 | 81 copy libpanelw.so* |
al@19760 | 82 CAT="libs|panel stack extension" |
al@19743 | 83 DEPENDS="ncurses" |
al@19743 | 84 ;; |
al@19743 | 85 ncurses-extra) |
al@20436 | 86 copy @std @rm |
al@19743 | 87 CAT="base-system|extra files" |
al@19743 | 88 DEPENDS="ncurses" |
al@19743 | 89 ;; |
al@19743 | 90 ncurses-dev) |
al@19743 | 91 copy @dev |
al@19743 | 92 ;; |
al@19743 | 93 esac |
pankso@7 | 94 } |