blob: ae0b6520fbbf9c71b7aa275f42346cae95d3a084 (
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
|