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

export CFLAGS="$CFLAGS -fPIC"

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

./configure \
    --prefix=/usr

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