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