summaryrefslogtreecommitdiff
path: root/repo/core/readline.xibuild
blob: b2797f8b671620fbcc0d899e7508aac9274f5a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

DEPS=(glibc ncurses)

SOURCE=https://git.savannah.gnu.org/git/readline.git
DESC="a set of libraries that offer command line editing and history capabilities"


build () {
    sed -i '/MV.*old/d' Makefile.in
    sed -i '/{OLDSUFF}/c:' support/shlib-install

    ./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

    install -v -m644 doc/*.{ps,pdf,html,dvi} $PKG_DEST/usr/share/doc/readline-8.1
}