--- admin/PlamoBuild-template-20170323 2017-03-23 06:38:12.000000000 +0900 +++ plamo/00_base/groff/PlamoBuild.groff-1.18.1.1 2017-04-06 07:40:57.000000000 +0900 @@ -1,17 +1,22 @@ #!/bin/sh ###################################################################### -url="" +url="http://ftp.gnu.org/gnu/groff/old/groff-1.18.1.1.tar.gz + https://launchpad.net/ubuntu/+archive/primary/+files/groff_1.18.1.1-20.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/00_base/groff/groff-1.18.1.1-fix-minus-char.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/00_base/groff/groff-1.18.1.1-polyfill_fix.patch.gz" verify= commitid= -pkgbase= -vers= +pkgbase=groff +vers=1.18.1.1 arch=`uname -m` -build=P1 +build=P6 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="groff_1.18.1.1-20.diff.gz + `echo groff-1.18.1.1-{fix-minus-char,polyfill_fix}.patch.gz`" +OPT_CONFIG="--enable-multibyte" +DOCS="BUG-REPORT COPYING ChangeLog FDL INSTALL* MANIFEST MORE.STUFF + NEWS PROBLEMS PROJECTS README* REVISION TODO VERSION" template=20170323 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -60,19 +65,48 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + install -d $P/usr + make install prefix=$P/usr fi done + ln -s tbl $P/usr/bin/gtbl + ln -s eqn $P/usr/bin/geqn + gdocdir=$docdir/groff/1.18.1 + dt=`LANG=C date '+%a %b %e 09:00:00 %Y'` + sed -i "s/\(CreationDate:\).*$/\1 $dt/g" $gdocdir/{examples/,}*.ps + sed -i "s/\(CreationDate:\).*\(-->\)/\1 $dt \2/g" \ + $gdocdir/{examples,html}/*.html touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress setup_docdir + mv $gdocdir/{html,examples,me{ref,intro}.me,pic.ms} $docdir/$src + mv $gdocdir/{me{ref,intro},pic}.ps $docdir/$src + mv $docdir/$src/{html,examples,me{ref,intro}.me,pic.ms} $C + mv $docdir/$src/{me{ref,intro},pic}.ps $C + mv $docdir/$src/{BUG-REPORT,COPYING,ChangeLog,FDL,INSTALL*}.gz $C + mv $docdir/$src/{MANIFEST,MORE.STUFF,NEWS,PROBLEMS,PROJECTS}.gz $C + mv $docdir/$src/{README*,REVISION,TODO,VERSION}.gz $C + mv $docdir/$src/{$func,$myname,$spec}.gz $C + mv $C/{html,examples,me{ref,intro}.me,pic.ms} $docdir/$src + mv $C/{me{ref,intro},pic}.ps $docdir/$src + mv $C/{BUG-REPORT,COPYING,ChangeLog,FDL,INSTALL*}.gz $docdir/$src + mv $C/{MANIFEST,MORE.STUFF,NEWS,PROBLEMS,PROJECTS}.gz $docdir/$src + mv $C/{README*,REVISION,TODO,VERSION}.gz $docdir/$src + mv $C/{$func,$myname,$spec}.gz $docdir/$src + touch -r $S $docdir/$src convert_links tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/groff + tar rvpf $pkg.tar -C $P usr/share/groff + 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/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | 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