| 1 | # Description: A System V Release 4.0 curses emulation library |
| 2 | # URL: http://www.gnu.org/software/ncurses/ncurses.html |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: |
| 6 | |
| 7 | name=ncurses |
| 8 | version=6.1 |
| 9 | release=1 |
| 10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz) |
| 11 | |
| 12 | build() { |
| 13 | cd $name-$version |
| 14 | ./configure --build=$CHOST \ |
| 15 | --host=$CTARGET \ |
| 16 | --with-install-prefix=$PKG \ |
| 17 | --prefix=/usr \ |
| 18 | --mandir=/usr/share/man \ |
| 19 | --with-{normal,shared} \ |
| 20 | --without-{debug,ada,tests} \ |
| 21 | --enable-pc-files \ |
| 22 | --enable-widec \ |
| 23 | --disable-rpath \ |
| 24 | --disable-rpath-hack \ |
| 25 | --disable-stripping |
| 26 | |
| 27 | make |
| 28 | make DESTDIR=$PKG install |
| 29 | |
| 30 | install -d $PKG/{lib,usr/include/ncursesw,usr/lib/pkgconfig} |
| 31 | |
| 32 | # move library to /lib and create symlinks |
| 33 | mv $PKG/usr/lib/libncursesw.so.* $PKG/lib |
| 34 | ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so |
| 35 | ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*} |
| 36 | |
| 37 | # linker scripts and .pc files for non-wide ncurses |
| 38 | for LIB in ncurses form panel menu ; do |
| 39 | echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so |
| 40 | ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc |
| 41 | done |
| 42 | |
| 43 | # linker script for the curses library |
| 44 | echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so |
| 45 | ln -s libncurses.so $PKG/usr/lib/libcurses.so |
| 46 | } |