summaryrefslogtreecommitdiffstats
path: root/base/docbook-xsl/Pkgfile
blob: efb5543831875ef29058e0327961c12b56e9c1ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Description: Transformation XML stylesheets pour Docbook-xml.
# URL:  http://scrollkeeper.sourceforge.net/docbook.shtml
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libxslt, libxml2, docbook-xml

name=docbook-xsl
version=1.74.0
release=1
source=(http://downloads.sourceforge.net/docbook/$name-$version.tar.bz2)

build() {
	cd $name-$version
	install -v -m755 -d $PKG/usr/share/xml/docbook/xsl-stylesheets-$version/{common,params}
	cp -a common/*.{dtd,ent,xml,xsl} \
		$PKG/usr/share/xml/docbook/xsl-stylesheets-$version/common/
	cp -a params/*.xml \
		$PKG/usr/share/xml/docbook/xsl-stylesheets-$version/params/
	for i in fo highlighting html roundtrip
	do
		mkdir -p $PKG/usr/share/xml/docbook/xsl-stylesheets-$version/$i
		cp -a $i/*.{xml,xsl} \
			$PKG/usr/share/xml/docbook/xsl-stylesheets-$version/$i/
	done
	for i in eclipse htmlhelp javahelp lib manpages profiling template \
		website xhtml
	do
		mkdir -p $PKG/usr/share/xml/docbook/xsl-stylesheets-$version/$i
		cp -a $i/*.xsl $PKG/usr/share/xml/docbook/xsl-stylesheets-$version/$i/
	done
	# copy VERSION (required)
	cp VERSION $PKG/usr/share/xml/docbook/xsl-stylesheets-$version/
	chown 0:0 -R $PKG 
}