wok-next annotate docbook-sgml3/receipt @ rev 19872
Up palemoon (27.5.0)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Sep 27 20:45:12 2017 +0200 (2017-09-27) |
parents | |
children | 0e7893ac206d |
rev | line source |
---|---|
al@19790 | 1 # SliTaz package receipt v2. |
al@19790 | 2 |
al@19790 | 3 PACKAGE="docbook-sgml3" |
al@19790 | 4 VERSION="3.1" |
al@19790 | 5 CATEGORY="development" |
al@19790 | 6 SHORT_DESC="Legacy docbook-sgml" |
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 HOST_ARCH="any" |
al@19790 | 11 |
al@19790 | 12 TARBALL="docbk31.zip" |
al@19790 | 13 WGET_URL="http://www.docbook.org/sgml/3.1/$TARBALL" |
al@19790 | 14 |
al@19790 | 15 # Rules to configure and make the package. |
al@19790 | 16 compile_rules() |
al@19790 | 17 { |
al@19790 | 18 sed -i -e '/ISO 8879/d' \ |
al@19790 | 19 -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \ |
al@19790 | 20 docbook.cat |
al@19790 | 21 |
al@19790 | 22 local dtd="$install/usr/share/sgml/docbook/sgml-dtd-$VERSION" |
al@19790 | 23 |
al@19790 | 24 mkdir -p $dtd |
al@19790 | 25 cp docbook.cat $dtd/catalog |
al@19790 | 26 cp *.dtd *.mod *.dcl $dtd |
al@19790 | 27 |
al@19790 | 28 cat >> $dtd/catalog << "EOF" |
al@19790 | 29 -- Begin Single Major Version catalog changes -- |
al@19790 | 30 |
al@19790 | 31 PUBLIC "-//Davenport//DTD DocBook V3.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@19790 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19790 | 41 genpkg_rules() |
al@19790 | 42 { |
al@19790 | 43 copy @std |
al@19790 | 44 DEPENDS="sgml-common" |
al@19790 | 45 CONFIG_FILES="/etc/sgml/catalog" |
al@19790 | 46 } |
al@19790 | 47 |
al@19790 | 48 pre_remove() { |
al@19790 | 49 local p1="/etc/sgml/sgml-docbook-dtd-$VERSION.cat" |
al@19790 | 50 local p2="/usr/share/sgml/docbook/sgml-dtd-$VERSION/catalog" |
al@19790 | 51 local p3="/etc/sgml/sgml-docbook.cat" |
al@19790 | 52 |
al@19790 | 53 touch "$1/etc/sgml/catalog" |
al@19790 | 54 chroot "$1/" install-catalog --remove $p1 $p2 >/dev/null |
al@19790 | 55 chroot "$1/" install-catalog --remove $p1 $p3 >/dev/null |
al@19790 | 56 } |
al@19790 | 57 |
al@19790 | 58 post_install() { |
al@19790 | 59 local p1="/etc/sgml/sgml-docbook-dtd-$VERSION.cat" |
al@19790 | 60 local p2="/usr/share/sgml/docbook/sgml-dtd-$VERSION/catalog" |
al@19790 | 61 local p3="/etc/sgml/sgml-docbook.cat" |
al@19790 | 62 |
al@19790 | 63 # Remove the catalog items prior to upgrading |
al@19790 | 64 [ -e "$1$p1" ] && pre_remove |
al@19790 | 65 |
al@19790 | 66 touch "$1/etc/sgml/catalog" "$1/$p1" |
al@19790 | 67 chroot "$1/" install-catalog --add $p1 $p2 >/dev/null |
al@19790 | 68 chroot "$1/" install-catalog --add $p1 $p3 >/dev/null |
al@19790 | 69 } |