wok-4.x view docbook-xml/receipt @ rev 7416
Add frozen-bubble.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Nov 28 00:32:42 2010 +0000 (2010-11-28) |
parents | |
children | d84e95f8e99e |
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xml"
4 VERSION="5.0"
5 CATEGORY="development"
6 SHORT_DESC="General purpose XML Document Type Definition."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="libxml2-tools libxml2"
9 BUILD_DEPENDS="unzip"
10 SOURCE="docbook"
11 TARBALL="$SOURCE-$VERSION.zip"
12 WEB_SITE="http://www.docbook.org/"
13 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/xml/docbook/schema/5.0/dtd
19 mkdir -p $fs/usr/share/xml/docbook/schema/5.0/rng
20 mkdir -p $fs/usr/share/xml/docbook/schema/5.0/sch
21 mkdir -p $fs/usr/share/xml/docbook/schema/5.0/xsd
22 mkdir -p $fs/usr/share/xml/docbook/stylesheet/docbook5
23 mkdir -p $fs/usr/share/doc/docbook-xml-5.0/images/
25 src=$SOURCE-$VERSION
26 cp -a $src/dtd/* $fs/usr/share/xml/docbook/schema/5.0/dtd
27 cp -a $src/rng/* $fs/usr/share/xml/docbook/schema/5.0/rng
28 cp -a $src/sch/* $fs/usr/share/xml/docbook/schema/5.0/sch
29 cp -a $src/xsd/* $fs/usr/share/xml/docbook/schema/5.0/xsd
30 cp -a $src/tools/* $fs/usr/share/xml/docbook/stylesheet/docbook5
31 cp -a $src/docs/images/* $fs/usr/share/doc/docbook-xml-5.0/images
32 cp -a $src/docs/* $fs/usr/share/doc/docbook-xml-5.0
33 cp -a $src/README $fs/usr/share/doc/docbook-xml-5.0
34 cp -a $src/catalog.xml $fs/usr/share/xml/docbook/schema/5.0
35 cp -a $src/docbook.nvdl $fs/usr/share/xml/docbook/schema/5.0
37 }
38 # Pre and post install commands for Tazpkg.
39 post_install()
40 {
41 echo -n "Processing post-install commands..."
43 # Add /etc/xml/catalog
44 install -d -m755 $1/etc/xml
45 [ ! -f $1/etc/xml/catalog ] &&
46 xmlcatalog --noout --create $1/etc/xml/catalog
48 xmlcatalog --noout --add "delegatePublic" \
49 "-//OASIS//DTD DocBook XML 5.0//EN" \
50 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
51 $1/etc/xml/catalog &&
52 xmlcatalog --noout --add "delegateSystem" \
53 "http://www.oasis-open.org/docbook/xml/5.0" \
54 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
55 $1/etc/xml/catalog &&
56 xmlcatalog --noout --add "delegateSystem" \
57 "http://docbook.org/xml/5.0" \
58 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
59 $1/etc/xml/catalog &&
60 xmlcatalog --noout --add "delegateURI" \
61 "http://www.oasis-open.org/docbook/xml/5.0" \
62 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
63 $1/etc/xml/catalog &&
64 xmlcatalog --noout --add "delegateURI" \
65 "http://docbook.org/xml/5.0" \
66 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
67 $1/etc/xml/catalog
68 status
69 }