wok-next view sgml-common/receipt @ rev 19879
qemacs: does not need gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 04 18:36:44 2017 +0200 (2017-10-04) |
parents | |
children | 0e7893ac206d |
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="http://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 # Rules to configure and make the package.
17 compile_rules()
18 {
19 autoreconf -fi &&
21 ./configure \
22 --sysconfdir=/etc \
23 $CONFIGURE_ARGS &&
24 make &&
25 make docdir=/usr/share/doc install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 copy @std
32 CONFIG_FILES="/etc/sgml/sgml.conf"
33 }
35 pre_remove() {
36 local p1='/etc/sgml/sgml-ent.cat'
37 local p2='/etc/sgml/sgml-docbook.cat'
38 local p3='/usr/share/sgml/sgml-iso-entities-8879.1986/catalog'
40 touch "$1/etc/sgml/catalog"
41 chroot "$1/" install-catalog --remove $p1 $p3 >/dev/null
42 chroot "$1/" install-catalog --remove $p2 $p1 >/dev/null
43 }
45 post_install() {
46 touch "$1/etc/sgml/catalog"
47 local p1='/etc/sgml/sgml-ent.cat'
48 local p2='/etc/sgml/sgml-docbook.cat'
49 local p3='/usr/share/sgml/sgml-iso-entities-8879.1986/catalog'
51 # Remove the catalog items prior to upgrading
52 [ -e "$1$p1" -a -e "$1$p2" ] && pre_remove
54 touch "$1/etc/sgml/catalog" "$1$p1" "$1$p2"
55 chroot "$1/" install-catalog --add $p1 $p3 >/dev/null
56 chroot "$1/" install-catalog --add $p2 $p1 >/dev/null
57 }