From cb447620084a20be80d116c81c2e9ec110be7118 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 16 Jan 2022 01:23:51 +0000 Subject: restructured repo system --- repo/system/ncurses.xibuild | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 repo/system/ncurses.xibuild (limited to 'repo/system/ncurses.xibuild') diff --git a/repo/system/ncurses.xibuild b/repo/system/ncurses.xibuild new file mode 100644 index 0000000..c42d402 --- /dev/null +++ b/repo/system/ncurses.xibuild @@ -0,0 +1,33 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://invisible-mirror.net/archives/ncurses/ncurses-6.3.tar.gz + +DESC="curses emulation library" + +build () { + ./configure --prefix=/usr --mandir=/usr/share/man --with-shared --without-debug --without-normal --enable-pc-files --enable-widec + + make + + make DESTDIR=$PKG_DEST install +} + + +package () { + + for lib in ncurses form panel menu ; do + rm -vf $PKG_DEST/usr/lib/lib${lib}.so + echo "INPUT(-l${lib}w)" > $PKG_DEST/usr/lib/lib${lib}.so + ln -sfv ${lib}w.pc $PKG_DEST/usr/lib/pkgconfig/${lib}.pc + done + + rm -vf $PKG_DEST/usr/lib/libcursesw.so + echo "INPUT(-lncursesw)" > $PKG_DEST/usr/lib/libcursesw.so + ln -sfv libncurses.so $PKG_DEST/usr/lib/libcurses.so + + # install docs + mkdir -pv $PKG_DEST/usr/share/doc/ncurses-6.3 + cp -v -R doc/* $PKG_DEST/usr/share/doc/ncurses-6.3 +} -- cgit v1.2.1