wok-next view sgml-common/receipt @ rev 21045
Up cookutils (1094)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 26 12:14:47 2018 +0200 (2018-11-26) |
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 }