wok annotate docbook-xml/receipt @ rev 8296
Up: git to 1.7.4.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Jan 31 18:37:42 2011 +0000 (2011-01-31) |
parents | 086402ab7a61 |
children | b01f45f72f9c |
rev | line source |
---|---|
slaxemulator@6983 | 1 # SliTaz package receipt. |
slaxemulator@6983 | 2 |
slaxemulator@6983 | 3 PACKAGE="docbook-xml" |
slaxemulator@7625 | 4 VERSION="4.5" |
slaxemulator@6983 | 5 CATEGORY="development" |
slaxemulator@6983 | 6 SHORT_DESC="General purpose XML Document Type Definition." |
slaxemulator@6983 | 7 MAINTAINER="paul@slitaz.org" |
slaxemulator@6983 | 8 DEPENDS="libxml2-tools libxml2" |
slaxemulator@7625 | 9 BUILD_DEPENDS="$DEPENDS unzip" |
slaxemulator@6983 | 10 SOURCE="docbook" |
slaxemulator@7625 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
slaxemulator@6983 | 12 WEB_SITE="http://www.docbook.org/" |
slaxemulator@7625 | 13 WGET="http://www.docbook.org/xml/$VERSION/$TARBALL" |
slaxemulator@6983 | 14 |
slaxemulator@6983 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6983 | 16 genpkg_rules() |
slaxemulator@6983 | 17 { |
slaxemulator@7625 | 18 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then |
slaxemulator@7625 | 19 mkdir -p $src && unzip $SOURCES_REPOSITORY/$TARBALL -d $src |
slaxemulator@7625 | 20 else |
slaxemulator@7625 | 21 wget -O $SOURCES_REPOSITORY/$TARBALL $WGET |
slaxemulator@7625 | 22 mkdir -p $src && unzip $SOURCES_REPOSITORY/$TARBALL -d $src |
slaxemulator@7625 | 23 fi |
slaxemulator@6983 | 24 |
slaxemulator@7625 | 25 #cd $src |
slaxemulator@7625 | 26 install -v -d -m755 $fs/usr/share/xml/docbook/xml-dtd-$VERSION && |
slaxemulator@7625 | 27 install -v -d -m755 $fs/etc/xml && |
slaxemulator@7625 | 28 chown -R root:root . && |
slaxemulator@7625 | 29 cp -v -af $src/docbook.cat $src/*.dtd $src/ent/ $src/*.mod \ |
slaxemulator@7625 | 30 $fs/usr/share/xml/docbook/xml-dtd-$VERSION |
slaxemulator@7625 | 31 |
slaxemulator@7625 | 32 |
slaxemulator@7625 | 33 xmlcatalog --noout --create $fs/etc/xml/docbook |
slaxemulator@7625 | 34 xmlcatalog --noout --create $fs/etc/xml/catalog |
slaxemulator@7625 | 35 |
slaxemulator@7625 | 36 for DTDVERSION in 4.1.2 4.2 4.3 4.4 |
slaxemulator@7625 | 37 do |
slaxemulator@7625 | 38 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 39 "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \ |
slaxemulator@7625 | 40 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \ |
slaxemulator@7625 | 41 $fs/etc/xml/docbook |
slaxemulator@7625 | 42 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@7625 | 43 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ |
slaxemulator@7625 | 44 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \ |
slaxemulator@7625 | 45 $fs/etc/xml/docbook |
slaxemulator@7625 | 46 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@7625 | 47 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ |
slaxemulator@7625 | 48 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \ |
slaxemulator@7625 | 49 $fs/etc/xml/docbook |
slaxemulator@7625 | 50 xmlcatalog --noout --add "delegateSystem" \ |
slaxemulator@7625 | 51 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ |
slaxemulator@7625 | 52 "file:///etc/xml/docbook" \ |
slaxemulator@7625 | 53 $fs/etc/xml/catalog |
slaxemulator@7625 | 54 xmlcatalog --noout --add "delegateURI" \ |
slaxemulator@7625 | 55 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ |
slaxemulator@7625 | 56 "file:///etc/xml/docbook" \ |
slaxemulator@7625 | 57 $fs/etc/xml/catalog |
slaxemulator@7625 | 58 done |
slaxemulator@7625 | 59 |
slaxemulator@6983 | 60 |
slaxemulator@6983 | 61 } |
slaxemulator@7625 | 62 |
slaxemulator@6983 | 63 # Pre and post install commands for Tazpkg. |
slaxemulator@6983 | 64 post_install() |
slaxemulator@6983 | 65 { |
slaxemulator@6983 | 66 echo -n "Processing post-install commands..." |
slaxemulator@6983 | 67 |
slaxemulator@7625 | 68 # Add /etc/xml/docbook |
slaxemulator@6983 | 69 install -d -m755 $1/etc/xml |
slaxemulator@7625 | 70 if [ ! -e /etc/xml/docbook ]; then |
slaxemulator@7625 | 71 xmlcatalog --noout --create $1/etc/xml/docbook |
slaxemulator@7625 | 72 fi && |
slaxemulator@7625 | 73 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 74 "-//OASIS//DTD DocBook XML V4.5//EN" \ |
slaxemulator@7625 | 75 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \ |
slaxemulator@7625 | 76 $1/etc/xml/docbook && |
slaxemulator@7625 | 77 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 78 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \ |
slaxemulator@7625 | 79 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \ |
slaxemulator@7625 | 80 $1/etc/xml/docbook && |
slaxemulator@7625 | 81 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 82 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ |
slaxemulator@7625 | 83 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \ |
slaxemulator@7625 | 84 $1/etc/xml/docbook && |
slaxemulator@7625 | 85 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 86 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \ |
slaxemulator@7625 | 87 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \ |
slaxemulator@7625 | 88 $1/etc/xml/docbook && |
slaxemulator@7625 | 89 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 90 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \ |
slaxemulator@7625 | 91 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \ |
slaxemulator@7625 | 92 $1/etc/xml/docbook && |
slaxemulator@7625 | 93 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 94 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \ |
slaxemulator@7625 | 95 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \ |
slaxemulator@7625 | 96 $1/etc/xml/docbook && |
slaxemulator@7625 | 97 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 98 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \ |
slaxemulator@7625 | 99 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \ |
slaxemulator@7625 | 100 $1/etc/xml/docbook && |
slaxemulator@7625 | 101 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 102 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \ |
slaxemulator@7625 | 103 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \ |
slaxemulator@7625 | 104 $1/etc/xml/docbook && |
slaxemulator@7625 | 105 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 106 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \ |
slaxemulator@7625 | 107 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \ |
slaxemulator@7625 | 108 $1/etc/xml/docbook && |
slaxemulator@7625 | 109 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@7625 | 110 "http://www.oasis-open.org/docbook/xml/4.5" \ |
slaxemulator@7625 | 111 "file:///usr/share/xml/docbook/xml-dtd-4.5" \ |
slaxemulator@7625 | 112 $1/etc/xml/docbook && |
slaxemulator@7625 | 113 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@7625 | 114 "http://www.oasis-open.org/docbook/xml/4.5" \ |
slaxemulator@7625 | 115 "file:///usr/share/xml/docbook/xml-dtd-4.5" \ |
slaxemulator@7625 | 116 $1/etc/xml/docbook |
slaxemulator@6983 | 117 status |
slaxemulator@6983 | 118 } |
slaxemulator@6983 | 119 |