diff options
author | davidovski <david@davidovski.xyz> | 2021-10-06 09:03:02 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-10-06 09:03:02 +0100 |
commit | d4cb1386d79c95e7586e7bccad5b0f6c7861cfe8 (patch) | |
tree | faf7ff136ab50bdcf34f2d0c02002192c1c8bc39 /xibuilds/ncurses.xibuild | |
parent | cdea2f67ae42d4220e19a555259b69a960925283 (diff) |
added tarcapabilities
Diffstat (limited to 'xibuilds/ncurses.xibuild')
-rw-r--r-- | xibuilds/ncurses.xibuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/xibuilds/ncurses.xibuild b/xibuilds/ncurses.xibuild new file mode 100644 index 0000000..064fe07 --- /dev/null +++ b/xibuilds/ncurses.xibuild @@ -0,0 +1,34 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://invisible-mirror.net/archives/ncurses/ncurses-6.2.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 + rm -vf /usr/lib/libcursesw.so + done + + echo "INPUT(-lncursesw)" > $PKG_DEST/usr/lib/libcursesw.so + ln -sfv libncurses.so $PKG_DEST/usr/lib/libcurses.so + + + rm -fv $PKG_DEST/usr/lib/libncurses++w.a + + mkdir -v $PKG_DEST/usr/share/doc/ncurses-6.2 + cp -v -R doc/* $PKG_DEST/usr/share/doc/ncurses-6.2 +} |