wok-next view docbook-dsssl/receipt @ rev 20567
xfe: update receipt; qt5: undo `fix math`
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 11 01:07:35 2018 +0300 (2018-04-11) |
parents | b938e6730252 |
children | c2031fd4a3f3 |
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 compile_rules() {
15 mkdir -p \
16 $install/usr/bin \
17 $install/usr/share/man/man1 \
18 $install/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION
20 install -m755 bin/collateindex.pl $install/usr/bin &&
21 install -m644 bin/collateindex.pl.1 $install/usr/share/man/man1 &&
22 cp -R * $install/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION
23 }
25 genpkg_rules() {
26 copy bin/ *.dcl *.dtd *.gml *.dsl *.ent *.sgm *.mod *.css *.js \
27 frames/*.htm *.gif catalog VERSION
28 DEPENDS="sgml-common"
29 }
31 pre_remove() {
32 local p1="/etc/sgml/dsssl-docbook-stylesheets.cat"
33 local p2="/etc/sgml/sgml-docbook.cat"
34 local p3="/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION"
36 touch "$1/etc/sgml/catalog"
37 chroot "$1/" install-catalog --remove $p1 $p3/catalog >/dev/null
38 chroot "$1/" install-catalog --remove $p1 $p3/common/catalog >/dev/null
39 chroot "$1/" install-catalog --remove $p2 $p1 >/dev/null
40 }
42 post_install() {
43 local p1="/etc/sgml/dsssl-docbook-stylesheets.cat"
44 local p2="/etc/sgml/sgml-docbook.cat"
45 local p3="/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION"
47 # Remove the catalog items prior to upgrading
48 [ -e "$1$p1" -a -e "$1$p2" ] && pre_remove
50 touch "$1/etc/sgml/catalog" "$1$p1" "$1$p2"
51 chroot "$1/" install-catalog --add $p1 $p3/catalog >/dev/null
52 chroot "$1/" install-catalog --add $p1 $p3/common/catalog >/dev/null
53 chroot "$1/" install-catalog --add $p2 $p1 >/dev/null
54 }