summaryrefslogtreecommitdiff
path: root/readline-32/Pkgfile
blob: 8b4b79811369ad7762ce58a110c551d84c39ce99 (plain)
    1 # Description: Lets users edit command lines as they are typed in
    2 # URL: https://tiswww.case.edu/php/chet/readline/rltop.html
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # Depends on: ncurses-32
    5 
    6 name=readline-32
    7 version=8.2.1
    8 release=1
    9 source=(https://ftp.gnu.org/gnu/${name%-*}/${name%-*}-${version:0:3}.tar.gz)
   10 
   11 build() {
   12 	cd ${name%-*}-${version:0:3}
   13 
   14 	./configure --prefix=/usr --libdir=/usr/lib32
   15 	make -j1 SHLIB_LIBS=-lncurses
   16 	make -j1 DESTDIR=$PKG install
   17 
   18 	install -d $PKG/lib32
   19 	mv $PKG/usr/lib32/lib*.so.* $PKG/lib32
   20 	ln -sf ../../lib32/libhistory.so.${version:0:3} $PKG/usr/lib32/libhistory.so
   21 	ln -sf ../../lib32/libreadline.so.${version:0:3} $PKG/usr/lib32/libreadline.so
   22 
   23 	rm -r $PKG/usr/{bin,include,share/man,share}
   24 }

Generated by cgit