summaryrefslogtreecommitdiff
path: root/repo/ncurses/ncurses.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/ncurses/ncurses.xibuild
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/ncurses/ncurses.xibuild')
-rw-r--r--repo/ncurses/ncurses.xibuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/repo/ncurses/ncurses.xibuild b/repo/ncurses/ncurses.xibuild
new file mode 100644
index 0000000..784ec63
--- /dev/null
+++ b/repo/ncurses/ncurses.xibuild
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+MAKEDEPS="make pkg-config"
+DEPS="musl"
+
+PKG_VER=6.3
+SOURCE=https://invisible-mirror.net/archives/ncurses/ncurses-$PKG_VER.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 \
+ --with-pkg-config-libdir=/usr/lib/pkgconfig
+ make
+}
+
+
+package () {
+ make DESTDIR=$PKG_DEST install
+
+ for lib in ncurses form panel menu ; do
+ rm -f $PKG_DEST/usr/lib/lib${lib}.so
+ echo "INPUT(-l${lib}w)" > $PKG_DEST/usr/lib/lib${lib}.so
+ ln -sf ${lib}w.pc $PKG_DEST/usr/lib/pkgconfig/${lib}.pc
+ done
+
+ rm -f $PKG_DEST/usr/lib/libcursesw.so
+ echo "INPUT(-lncursesw)" > $PKG_DEST/usr/lib/libcursesw.so
+ ln -sf libncurses.so $PKG_DEST/usr/lib/libcurses.so
+
+ # install docs
+ mkdir -p $PKG_DEST/usr/share/doc/ncurses-$PKG_VER
+ cp -R doc/* $PKG_DEST/usr/share/doc/ncurses-$PKG_VER
+}