--- admin/PlamoBuild-template-20170713 2017-07-13 13:07:00.000000000 +0900 +++ plamo/05_ext/docbook.txz/docbook_xsl/PlamoBuild.docbook_xsl-1.76.1 2017-08-07 21:19:07.000000000 +0900 @@ -1,19 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="http://downloads.sourceforge.net/docbook/docbook-xsl-1.76.1.tar.bz2" verify= digest= branch= commitid= -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers +pkgbase=docbook_xsl +vers=1.76.1 +arch=noarch +build=P5 +src=docbook-xsl-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS BUGS COPYING INSTALL NEWS `echo NEWS.{html,xml}` README + `echo RELEASE-NOTES.{html,pdf,txt,xml}` TODO VERSION" template=20170713 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -49,7 +50,7 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make fi done @@ -61,10 +62,16 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make install DESTDIR=$P fi done + docbookdir=$P/usr/share/xml/docbook + install -d $docbookdir/stylesheet + cp -a $W/docbook-xsl-$vers $docbookdir/stylesheet/$vers + chmod 644 $docbookdir/stylesheet/$vers/extensions/*.txt + find $docbookdir/stylesheet/$vers/webhelp -type f -exec chmod 644 {} \; + chown -R root.root $docbookdir/stylesheet/* touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -72,9 +79,21 @@ 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` + install -d $P/install + cat <<- EOF > $P/install/doinst.sh + #%% begin initialize $pkg + [ -d /etc/xml ] || mkdir /etc/xml + [ -f /etc/xml/catalog ] || xmlcatalog --noout --create /etc/xml/catalog + docbookdir=/usr/share/xml/docbook + xmlcatalog --noout --add nextCatalog '' \\ + file://\$docbookdir/stylesheet/$vers/catalog.xml \\ + --create /etc/xml/catalog + #%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P usr/share/xml/docbook 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