summaryrefslogtreecommitdiff
path: root/repo/readline/readline.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/readline/readline.xibuild')
-rw-r--r--repo/readline/readline.xibuild30
1 files changed, 30 insertions, 0 deletions
diff --git a/repo/readline/readline.xibuild b/repo/readline/readline.xibuild
new file mode 100644
index 0000000..5b93318
--- /dev/null
+++ b/repo/readline/readline.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+MAKEDEPS="make sed"
+DEPS="musl ncurses"
+
+PKG_VER=8.1
+
+SOURCE=https://ftp.gnu.org/gnu/readline/readline-$PKG_VER.tar.gz
+DESC="a set of libraries that offer command line editing and history capabilities"
+
+
+prepare () {
+ sed -i '/MV.*old/d' Makefile.in
+ sed -i '/{OLDSUFF}/c:' support/shlib-install
+}
+
+build () {
+ ./configure --prefix=/usr \
+ --disable-static \
+ --with-curses \
+ --docdir=/usr/share/doc/readline-$PKG_VER
+
+ make SHLIB_LIBS="-lncursesw"
+}
+
+package () {
+ make SHLIB_LIBS="-lncursesw" DESTDIR=$PKG_DEST install
+ install -m644 doc/* $PKG_DEST/usr/share/doc/readline-$PKG_VER
+}
+