wok-next annotate sgml-common/receipt @ rev 21727

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