--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/05_ext/tk.txz/Tix/PlamoBuild.Tix-8.4.3 2017-07-01 06:43:13.000000000 +0900 @@ -1,18 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="http://downloads.sourceforge.net/tix/Tix8.4.3-src.tar.gz + http://ftp.slackware.com/pub/slackware/slackware-14.0/source/tcl/tix/tix.tcl8.5.patch.gz + http://ftp.slackware.com/pub/slackware/slackware-14.0/source/tcl/tix/tix.soname.patch.gz" verify= digest= commitid= -pkgbase= -vers= +pkgbase=Tix +vers=8.4.3 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P4 +src=$pkgbase$vers +patchfiles="tix.tcl8.5.patch.gz tix.soname.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="license.terms README.txt ChangeLog" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -41,7 +43,9 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-tcl=/usr/$libdir --with-tk=/usr/$libdir \ + CPPFLAGS="-DUSE_INTERP_RESULT" fi done fi @@ -64,15 +68,36 @@ make install DESTDIR=$P fi done + chown -R root.root $P/usr/$libdir/Tix$vers/{pref,bitmaps} + chmod -R g-w $P/usr/$libdir/Tix$vers/bitmaps + rmdir $P/usr/$libdir/Tix$vers/html + install -d $P/usr/share/man/mann + install -m 644 man/*.n $P/usr/share/man/mann touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/Tix$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/Tix$vers setup_docdir + cp -a $S/docs $docdir/$src + find $docdir/$src/docs -type d -exec chmod 755 {} \; + find $docdir/$src/docs -type f -exec chmod 644 {} \; + chown -R root.root $docdir/$src/docs + cp -p $S/{index,ABOUT}.html $docdir/$src + chmod 644 $docdir/$src/{index,ABOUT}.html + chown root.root $docdir/$src/{index,ABOUT}.html + mv $docdir/$src/{docs,{index,ABOUT}.html} $C + mv $docdir/$src/{license.terms,README.txt,ChangeLog}.gz $C + mv $docdir/$src/{$func,$myname,$spec}.gz $C + mv $C/{docs,{index,ABOUT}.html} $docdir/$src + mv $C/{license.terms,README.txt,ChangeLog}.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 `cd $P ; find usr/share/man/man1 | tail -n+2` + tar cvpf $pkg.tar -C $P usr/$libdir/Tix$vers + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/mann | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz