summaryrefslogtreecommitdiff
path: root/ncurses/Pkgfile
blob: 05c0cff157e88b595a123436c549ce523a815f60 (plain)
    1 # Description: A System V Release 4.0 curses emulation library
    2 # URL:         http://www.gnu.org/software/ncurses/ncurses.html
    3 # Maintainer:  Per Lidén, core-ports at crux dot nu
    4 
    5 name=ncurses
    6 version=5.6
    7 release=1
    8 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
    9 
   10 build() {
   11     cd $name-$version
   12 
   13     local OPTIONS="\
   14 --with-install-prefix=$PKG \
   15 --prefix=/usr \
   16 --with-normal \
   17 --with-shared \
   18 --without-debug \
   19 --without-ada
   20 "
   21 
   22     ./configure $OPTIONS
   23     make
   24     make install
   25     make distclean
   26 
   27     ./configure $OPTIONS --enable-widec
   28     make
   29     make install
   30 
   31     mkdir $PKG/lib
   32 
   33     for i in w ''; do \
   34         mv $PKG/usr/lib/libncurses$i.so.* $PKG/lib && \
   35         ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so && \
   36         ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so && \
   37         ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so.5 \
   38     ; done
   39 }

Generated by cgit