wok-next view docbook-sgml/receipt @ rev 21018

Nasty typo broke the cooker
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Oct 17 03:59:24 2018 +0300 (2018-10-17)
parents 7506b35e1c6f
children
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="https://docbook.org/sgml/"
10 HOST_ARCH="any"
12 TARBALL="docbook-$VERSION.zip"
13 WGET_URL="https://docbook.org/sgml/$VERSION/$TARBALL"
15 compile_rules() {
16 sed -i '/ISO 8879/d; /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 }