summaryrefslogtreecommitdiffstats
path: root/ncurses/Pkgfile
blob: ffc2a4d40372f2195bc28808d79ce1fbaa10de82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
description="A System V Release 4.0 curses emulation library"
packager=""
maintainer="CRUX System Team, core-ports at crux dot nu"
url="http://www.gnu.org/software/ncurses/ncurses.html"
depends=()

name=ncurses
version=5.7
release=1
source=(http://ftp.gnu.org/gnu/ncurses/ncurses-5.7.tar.gz)
build () 
{ 
    cd $name-$version;
    local OPTIONS="--with-install-prefix=$PKG --prefix=/usr --with-normal --with-shared --without-debug --without-ada
";
    ./configure $OPTIONS;
    make;
    make install;
    make distclean;
    ./configure $OPTIONS --enable-widec;
    make;
    make install;
    mkdir $PKG/lib;
    for i in w '';
    do
        mv $PKG/usr/lib/libncurses$i.so.* $PKG/lib && ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so && ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so && ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so.5;
    done
}