wok-next view sgml-common/receipt @ rev 21441

rogue: reverted to 5.4.4
author Hans-G?nter Theisgen
date Tue May 05 16:11:30 2020 +0100 (2020-05-05)
parents 757d032c55c7
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="sgml-common"
4 VERSION="0.6.3"
5 CATEGORY="development"
6 SHORT_DESC="Tools for maintaining centralized SGML catalogs"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://docbook.org/xml/"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="https://www.sourceware.org/pub/docbook-tools/new-trials/SOURCES/$TARBALL"
14 BUILD_DEPENDS="automake"
16 compile_rules() {
17 autoreconf -fi &&
19 ./configure $CONFIGURE_ARGS &&
20 make &&
21 make docdir=/usr/share/doc install
22 }
24 genpkg_rules() {
25 copy @std
26 CONFIG_FILES="/etc/sgml/sgml.conf"
27 }
29 pre_remove() {
30 local p1='/etc/sgml/sgml-ent.cat'
31 local p2='/etc/sgml/sgml-docbook.cat'
32 local p3='/usr/share/sgml/sgml-iso-entities-8879.1986/catalog'
34 touch "$1/etc/sgml/catalog"
35 chroot "$1/" install-catalog --remove $p1 $p3 >/dev/null
36 chroot "$1/" install-catalog --remove $p2 $p1 >/dev/null
37 }
39 post_install() {
40 touch "$1/etc/sgml/catalog"
41 local p1='/etc/sgml/sgml-ent.cat'
42 local p2='/etc/sgml/sgml-docbook.cat'
43 local p3='/usr/share/sgml/sgml-iso-entities-8879.1986/catalog'
45 # Remove the catalog items prior to upgrading
46 [ -e "$1$p1" -a -e "$1$p2" ] && pre_remove
48 touch "$1/etc/sgml/catalog" "$1$p1" "$1$p2"
49 chroot "$1/" install-catalog --add $p1 $p3 >/dev/null
50 chroot "$1/" install-catalog --add $p2 $p1 >/dev/null
51 }