wok-next view docbook-dsssl/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="docbook-dsssl"
4 VERSION="1.79"
5 CATEGORY="development"
6 SHORT_DESC="DSSSL stylesheets for DocBook"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="custom"
9 WEB_SITE="http://docbook.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/docbook/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p \
18 $install/usr/bin \
19 $install/usr/share/man/man1 \
20 $install/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION
22 install -m755 bin/collateindex.pl $install/usr/bin &&
23 install -m644 bin/collateindex.pl.1 $install/usr/share/man/man1 &&
24 cp -R * $install/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 copy bin/ *.dcl *.dtd *.gml *.dsl *.ent *.sgm *.mod *.css *.js \
31 frames/*.htm *.gif catalog VERSION
32 DEPENDS="sgml-common"
33 }
35 pre_remove() {
36 local p1="/etc/sgml/dsssl-docbook-stylesheets.cat"
37 local p2="/etc/sgml/sgml-docbook.cat"
38 local p3="/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION"
40 touch "$1/etc/sgml/catalog"
41 chroot "$1/" install-catalog --remove $p1 $p3/catalog >/dev/null
42 chroot "$1/" install-catalog --remove $p1 $p3/common/catalog >/dev/null
43 chroot "$1/" install-catalog --remove $p2 $p1 >/dev/null
44 }
46 post_install() {
47 local p1="/etc/sgml/dsssl-docbook-stylesheets.cat"
48 local p2="/etc/sgml/sgml-docbook.cat"
49 local p3="/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION"
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/catalog >/dev/null
56 chroot "$1/" install-catalog --add $p1 $p3/common/catalog >/dev/null
57 chroot "$1/" install-catalog --add $p2 $p1 >/dev/null
58 }