summaryrefslogtreecommitdiff
path: root/repo/core/ncurses.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-06 17:19:20 +0100
committerdavidovski <david@davidovski.xyz>2021-10-06 17:19:20 +0100
commit0a31fc2a959ea1230d07cfd837f5a9a945a7f80a (patch)
tree4c9aef911135753e8cdffd849c3d071167886168 /repo/core/ncurses.xibuild
Initial commit, added core packages
Diffstat (limited to 'repo/core/ncurses.xibuild')
-rw-r--r--repo/core/ncurses.xibuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/core/ncurses.xibuild b/repo/core/ncurses.xibuild
new file mode 100644
index 0000000..1becdb9
--- /dev/null
+++ b/repo/core/ncurses.xibuild
@@ -0,0 +1,33 @@
+#!/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 -pv $PKG_DEST/usr/share/doc/ncurses-6.2
+ cp -v -R doc/* $PKG_DEST/usr/share/doc/ncurses-6.2
+}