--- admin/PlamoBuild-template-20161020 2016-10-20 00:36:22.000000000 +0900 +++ plamo/00_base/old/dialog-20161120/PlamoBuild.dialog-1.3_20160828 2016-11-20 12:36:09.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://invisible-island.net/dialog/dialog-1.3-20160828.tgz" +pkgbase=dialog +vers=1.3_20160828 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=$pkgbase-1.3-20160828 patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--bindir=/bin --enable-nls --with-shared --with-ncursesw + --enable-widec" +DOCS="CHANGES README COPYING" template=20161020 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -237,7 +238,7 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + if [ -f makefile ] ; then make clean fi if [ -f config.log ] ; then @@ -245,7 +246,7 @@ fi 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 @@ -253,7 +254,7 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + if [ -f makefile ] ; then make fi done @@ -270,7 +271,7 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + if [ -f makefile ] ; then make install DESTDIR=$P fi done @@ -311,9 +312,12 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 read -p "Do you want to keep work files? [y/N] " ans