--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/00_base/readline/PlamoBuild.readline-6.3 2017-04-29 12:22:54.000000000 +0900 @@ -1,18 +1,26 @@ #!/bin/sh ###################################################################### -url="" +url="http://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-001 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-002 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-003 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-004 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-005 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-006 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-007 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-008" verify= digest= commitid= -pkgbase= -vers= +pkgbase=readline +vers=6.3 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-curses" +DOCS="COPYING README MANIFEST INSTALL CHANGELOG CHANGES NEWS USAGE" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -36,11 +44,20 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + patch -Np0 -i $W/readline63-001 + patch -Np0 -i $W/readline63-002 + patch -Np0 -i $W/readline63-003 + patch -Np0 -i $W/readline63-004 + patch -Np0 -i $W/readline63-005 + patch -Np0 -i $W/readline63-006 + patch -Np0 -i $W/readline63-007 + patch -Np0 -i $W/readline63-008 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + --libdir=/$libdir --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -49,7 +66,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make SHLIB_LIBS=-lncursesw fi done fi @@ -64,6 +81,11 @@ make install DESTDIR=$P fi done + install -d $P/usr/$libdir + rm $P/$libdir/lib{history,readline}.so + touch $P/$libdir/lib{history,readline}.so + ln -s /$libdir/libhistory.so.6 $P/usr/$libdir/libhistory.so + ln -s /$libdir/libreadline.so.6 $P/usr/$libdir/libreadline.so touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -71,9 +93,15 @@ compress setup_docdir convert_links - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` - tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + rm $P/$libdir/lib{history,readline}.so + tar cvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/readline + tar rvpf $pkg.tar -C $P usr/share/readline + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz cleanup