wok-next diff docbook-xsl/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents 52fc64fb8fee
children 0e7893ac206d
line diff
     1.1 --- a/docbook-xsl/receipt	Thu Dec 01 04:42:13 2016 +0200
     1.2 +++ b/docbook-xsl/receipt	Sat May 13 17:25:31 2017 +0300
     1.3 @@ -7,6 +7,7 @@
     1.4  MAINTAINER="paul@slitaz.org"
     1.5  LICENSE="MIT"
     1.6  WEB_SITE="http://docbook.sourceforge.net/"
     1.7 +
     1.8  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.9  WGET_URL="$SF_MIRROR/docbook/$TARBALL"
    1.10  
    1.11 @@ -24,7 +25,7 @@
    1.12  	for fn in xml xsl dtd ent; do
    1.13  		install -m644 common/*.${fn} $pkgroot/common/
    1.14  	done
    1.15 -	
    1.16 +
    1.17  	for fn in fo highlighting html roundtrip; do
    1.18  		install -dm755 ${pkgroot}/${fn}
    1.19  		install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
    1.20 @@ -45,38 +46,32 @@
    1.21  		cp /etc/resolv.conf "$1/etc/resolv.conf"
    1.22  	fi
    1.23  
    1.24 +	U="http://docbook.sourceforge.net/release/xsl"
    1.25 +	F="/usr/share/xml/docbook/stylesheet/$PACKAGE"
    1.26 +
    1.27  	# Create a /etc/xml/catalog file
    1.28  	if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
    1.29  	if [ ! -f "$1/etc/xml/catalog" ]; then
    1.30  		chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
    1.31  	fi &&
    1.32  
    1.33 -	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
    1.34 -		"http://docbook.sourceforge.net/release/xsl/$VERSION" \
    1.35 -		"/usr/share/xml/docbook/stylesheet/$PACKAGE" \
    1.36 -	/etc/xml/catalog &&
    1.37 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U/$VERSION" \
    1.38 +		"$F" /etc/xml/catalog &&
    1.39  
    1.40 -	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
    1.41 -		"http://docbook.sourceforge.net/release/xsl/$VERSION" \
    1.42 -		"/usr/share/xml/docbook/stylesheet/$PACKAGE" \
    1.43 -	/etc/xml/catalog &&
    1.44 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI"    "$U/$VERSION" \
    1.45 +		"$F" /etc/xml/catalog &&
    1.46  
    1.47 -	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
    1.48 -		"http://docbook.sourceforge.net/release/xsl/current" \
    1.49 -		"/usr/share/xml/docbook/stylesheet/$PACKAGE" \
    1.50 -	/etc/xml/catalog &&
    1.51 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U/current" \
    1.52 +		"$F" /etc/xml/catalog &&
    1.53  
    1.54 -	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
    1.55 -		"http://docbook.sourceforge.net/release/xsl/current" \
    1.56 -		"/usr/share/xml/docbook/stylesheet/$PACKAGE" \
    1.57 -	/etc/xml/catalog
    1.58 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI"    "$U/current" \
    1.59 +		"$F" /etc/xml/catalog
    1.60  
    1.61  	# link nwalsh dir
    1.62 -	cd "$1/usr/share/xml/docbook/stylesheet"
    1.63 -	ln -s $PACKAGE nwalsh
    1.64 +	ln -s $PACKAGE "$1/usr/share/xml/docbook/stylesheet/nwalsh"
    1.65  
    1.66  	if [ -n "$1" ]; then
    1.67 -		mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
    1.68 +		mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
    1.69  	fi
    1.70  
    1.71  	: