summaryrefslogtreecommitdiffstats
path: root/ncurses/Pkgfile
blob: d108164a64ce72f2c4d3423eaa00fef8b7208911 (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
29
30
31
32
33
34
35
36
37
38
39
40
description="A System V Release 4.0 curses emulation library."
packager="Lukc (XMPP/SMTP: lukc AT upyum DOT com)"
maintainer="Lukc (XMPP/SMTP: lukc AT upyum DOT com)"
url=http://www.gnu.org/software/ncurses/ncurses.html
depends=()

name=ncurses
version=5.7
release=1

includes=(gnu)
gnu_extension=".tar.gz"

configure_opts=(
	--with-install-prefix=$PKG
	--prefix=$prefix
	--with-normal
	--with-shared
	--without-debug
	--without-ada
)

build () 
{ 
	cd $name-$version;
	./configure ${configure_opts[@]};
	make;
	make DESTDIR=$PKG install;
	make distclean;
	./configure ${configure_opts[@]} --enable-widec;
	make;
	make DESTDIR=$PKG 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
}