compat-32/readline-32/Pkgfile

28 lines
889 B
Plaintext
Raw Normal View History

# Description: Lets users edit command lines as they are typed in
2017-03-02 12:22:15 +01:00
# URL: https://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: ncurses-32
name=readline-32
2018-06-22 13:09:08 +02:00
version=7.0.5
release=1
2017-03-02 12:22:15 +01:00
source=(https://ftp.gnu.org/gnu/${name%-*}/${name%-*}-${version:0:3}.tar.gz
${name%-*}-$version.patch.gz)
build() {
2017-03-02 12:22:15 +01:00
cd ${name%-*}-${version:0:3}
gunzip -c $SRC/${name%-*}-$version.patch.gz | patch -p0
./configure --prefix=/usr --libdir=/usr/lib32
2014-06-15 21:21:52 +02:00
make -j1 SHLIB_LIBS=-lncurses
make -j1 DESTDIR=$PKG install
install -d $PKG/lib32
mv $PKG/usr/lib32/lib*.so.* $PKG/lib32
2014-03-19 09:09:56 +01:00
ln -sf ../../lib32/libhistory.so.${version:0:3} $PKG/usr/lib32/libhistory.so
ln -sf ../../lib32/libreadline.so.${version:0:3} $PKG/usr/lib32/libreadline.so
rm -r $PKG/usr/{bin,include,share/man,share}
}