summaryrefslogtreecommitdiff
path: root/ncurses/Pkgfile
blob: d2c066fb7137388009033ae2d1533502430bd5ba (plain)
    1 # Description: A System V Release 4.0 curses emulation library
    2 # URL: https://invisible-island.net/ncurses/announce.html
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 
    5 name=ncurses
    6 version=6.3
    7 release=1
    8 source=(https://invisible-mirror.net/archives/$name/$name-$version.tar.gz)
    9 
   10 build() {
   11 	cd $name-$version
   12 
   13 	./configure --prefix=/usr \
   14 		--mandir=/usr/share/man \
   15 		--with-{normal,shared} \
   16 		--without-{debug,ada,tests} \
   17 		--enable-pc-files \
   18 		--with-pkg-config-libdir=/usr/lib/pkgconfig \
   19 		--enable-widec
   20 
   21 	make
   22 	make DESTDIR=$PKG install
   23 
   24 	install -d $PKG/lib
   25 
   26 	# move library to /lib and create symlinks
   27 	mv $PKG/usr/lib/libncursesw.so.* $PKG/lib
   28 	ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so
   29 	ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*}
   30 
   31 	# linker scripts and .pc files for non-wide ncurses
   32 	for LIB in ncurses form panel menu ; do
   33 		echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so
   34 		ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc
   35 	done
   36 
   37 	# provided by contrib/foot-terminfo
   38 	rm -r $PKG/usr/share/terminfo/f/foot{,-direct}
   39 
   40 	# linker script for the curses library
   41 	echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so
   42 	ln -s libncurses.so $PKG/usr/lib/libcurses.so
   43 }

Generated by cgit