wok-next view docbook-sgml3/receipt @ rev 20553

Up cookutils (1045), tazpkg (963)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 06 13:36:51 2018 +0300 (2018-04-06)
parents 0e7893ac206d
children d958fec46c9f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="docbook-sgml3"
4 VERSION="3.1"
5 CATEGORY="development"
6 SHORT_DESC="Legacy docbook-sgml"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://docbook.org/sgml/"
11 TARBALL="docbk31.zip"
12 WGET_URL="http://www.docbook.org/sgml/3.1/$TARBALL"
14 compile_rules() {
15 sed -i -e '/ISO 8879/d' \
16 -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \
17 docbook.cat
19 local dtd="$install/usr/share/sgml/docbook/sgml-dtd-$VERSION"
21 mkdir -p $dtd
22 cp docbook.cat $dtd/catalog
23 cp *.dtd *.mod *.dcl $dtd
25 cat >> $dtd/catalog << "EOF"
26 -- Begin Single Major Version catalog changes --
28 PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
30 -- End Single Major Version catalog changes --
31 EOF
33 mkdir -p $install/etc/sgml
34 touch $install/etc/sgml/catalog
35 }
37 genpkg_rules() {
38 copy @std
39 DEPENDS="sgml-common"
40 CONFIG_FILES="/etc/sgml/catalog"
41 }
43 pre_remove() {
44 local p1="/etc/sgml/sgml-docbook-dtd-$VERSION.cat"
45 local p2="/usr/share/sgml/docbook/sgml-dtd-$VERSION/catalog"
46 local p3="/etc/sgml/sgml-docbook.cat"
48 touch "$1/etc/sgml/catalog"
49 chroot "$1/" install-catalog --remove $p1 $p2 >/dev/null
50 chroot "$1/" install-catalog --remove $p1 $p3 >/dev/null
51 }
53 post_install() {
54 local p1="/etc/sgml/sgml-docbook-dtd-$VERSION.cat"
55 local p2="/usr/share/sgml/docbook/sgml-dtd-$VERSION/catalog"
56 local p3="/etc/sgml/sgml-docbook.cat"
58 # Remove the catalog items prior to upgrading
59 [ -e "$1$p1" ] && pre_remove
61 touch "$1/etc/sgml/catalog" "$1/$p1"
62 chroot "$1/" install-catalog --add $p1 $p2 >/dev/null
63 chroot "$1/" install-catalog --add $p1 $p3 >/dev/null
64 }