aboutsummaryrefslogtreecommitdiff
path: root/extra/readline/build
blob: 88cdea256d8b4b2874adca8492ab243c441ae79f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

export CFLAGS="$CFLAGS -fPIC"

# I am really tired of how bash and readline handles patches.
[ "${2##*p*}" ] || {
    maj=${2%%.*}
    min=${2%%p*} min=${min##*.}
    for patch in "readline$maj$min"-0??; do
        patch -p0 < "$patch"
    done
}

./configure \
    --prefix=/usr

make SHLIB_LIBS=-lncurses
make DESTDIR="$1" install