summaryrefslogtreecommitdiff
path: root/repo/system/readline.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
commit003727289cc45e29eff0c0c48ad0f9660f96644f (patch)
tree0fd7f0ac830dee29984262980b8c144e26aa09ba /repo/system/readline.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/system/readline.xibuild')
-rw-r--r--repo/system/readline.xibuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/repo/system/readline.xibuild b/repo/system/readline.xibuild
index 4c1f4ed..db34667 100644
--- a/repo/system/readline.xibuild
+++ b/repo/system/readline.xibuild
@@ -8,18 +8,22 @@ 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"
-build () {
+patch () {
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-8.1
make SHLIB_LIBS="-lncursesw"
- make SHLIB_LIBS="-lncursesw" DESTDIR=$PKG_DEST install
+}
+package () {
+ make SHLIB_LIBS="-lncursesw" DESTDIR=$PKG_DEST install
install -v -m644 doc/*.{ps,pdf,html,dvi} $PKG_DEST/usr/share/doc/readline-8.1
}