summaryrefslogtreecommitdiff
path: root/repo/readline
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/readline
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/readline')
-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
+}
+