blob: 5b9331881b850632edc6aed7117e15d9ccc7151b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
MAKEDEPS="make sed"
DEPS="musl ncurses"
PKG_VER=8.1
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"
prepare () {
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-$PKG_VER
make SHLIB_LIBS="-lncursesw"
}
package () {
make SHLIB_LIBS="-lncursesw" DESTDIR=$PKG_DEST install
install -m644 doc/* $PKG_DEST/usr/share/doc/readline-$PKG_VER
}
|