wok-next view docbook-sgml/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | 0e7893ac206d |
children | 7506b35e1c6f |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="docbook-sgml"
4 VERSION="4.5"
5 CATEGORY="development"
6 SHORT_DESC="Document type definitions for verification of SGML data files against the DocBook rule set"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://docbook.org/sgml/"
11 TARBALL="docbook-$VERSION.zip"
12 WGET_URL="http://www.docbook.org/sgml/$VERSION/$TARBALL"
14 compile_rules() {
15 sed -i -e '/ISO 8879/d' \
16 -e '/gml/d' docbook.cat
18 local dtd="$install/usr/share/sgml/docbook/sgml-dtd-$VERSION"
20 mkdir -p $dtd
21 cp docbook.cat $dtd/catalog
22 cp *.dtd *.mod *.dcl $dtd
24 cat >> $dtd/catalog << "EOF"
25 -- Begin Single Major Version catalog changes --
27 PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
28 PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
29 PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
30 PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
31 PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
33 -- End Single Major Version catalog changes --
34 EOF
36 mkdir -p $install/etc/sgml
37 touch $install/etc/sgml/catalog
38 }
40 genpkg_rules() {
41 copy @std
42 DEPENDS="sgml-common"
43 CONFIG_FILES="/etc/sgml/catalog"
44 }
46 pre_remove() {
47 local p1="/etc/sgml/sgml-docbook-dtd-$VERSION.cat"
48 local p2="/usr/share/sgml/docbook/sgml-dtd-$VERSION/catalog"
49 local p3="/etc/sgml/sgml-docbook.cat"
51 touch "$1/etc/sgml/catalog"
52 chroot "$1/" install-catalog --remove $p1 $p2 > /dev/null
53 chroot "$1/" install-catalog --remove $p1 $p3 > /dev/null
54 }
56 post_install() {
57 local p1="/etc/sgml/sgml-docbook-dtd-$VERSION.cat"
58 local p2="/usr/share/sgml/docbook/sgml-dtd-$VERSION/catalog"
59 local p3="/etc/sgml/sgml-docbook.cat"
61 # Remove the catalog items prior to upgrading
62 [ -e "$1$p1" ] && pre_remove
64 touch "$1/etc/sgml/catalog" "$1$p1"
65 chroot "$1/" install-catalog --add $p1 $p2 > /dev/null
66 chroot "$1/" install-catalog --add $p1 $p3 > /dev/null
67 }