wok-next annotate docbook-dsssl/receipt @ rev 20490
nareto: update index.php path (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 12 11:53:39 2018 +0100 (2018-03-12) |
parents | b938e6730252 |
children | c2031fd4a3f3 |
rev | line source |
---|---|
al@19790 | 1 # SliTaz package receipt v2. |
al@19790 | 2 |
al@19790 | 3 PACKAGE="docbook-dsssl" |
al@19790 | 4 VERSION="1.79" |
al@19790 | 5 CATEGORY="development" |
al@19790 | 6 SHORT_DESC="DSSSL stylesheets for DocBook" |
al@19790 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19790 | 8 LICENSE="custom" |
al@19790 | 9 WEB_SITE="http://docbook.sourceforge.net/" |
al@19790 | 10 |
al@19790 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19790 | 12 WGET_URL="$SF_MIRROR/docbook/$TARBALL" |
al@19790 | 13 |
al@20443 | 14 compile_rules() { |
al@19790 | 15 mkdir -p \ |
al@19790 | 16 $install/usr/bin \ |
al@19790 | 17 $install/usr/share/man/man1 \ |
al@19790 | 18 $install/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION |
al@19790 | 19 |
al@19790 | 20 install -m755 bin/collateindex.pl $install/usr/bin && |
al@19790 | 21 install -m644 bin/collateindex.pl.1 $install/usr/share/man/man1 && |
al@19790 | 22 cp -R * $install/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION |
al@19790 | 23 } |
al@19790 | 24 |
al@20443 | 25 genpkg_rules() { |
al@19790 | 26 copy bin/ *.dcl *.dtd *.gml *.dsl *.ent *.sgm *.mod *.css *.js \ |
al@19790 | 27 frames/*.htm *.gif catalog VERSION |
al@19790 | 28 DEPENDS="sgml-common" |
al@19790 | 29 } |
al@19790 | 30 |
al@19790 | 31 pre_remove() { |
al@19790 | 32 local p1="/etc/sgml/dsssl-docbook-stylesheets.cat" |
al@19790 | 33 local p2="/etc/sgml/sgml-docbook.cat" |
al@19790 | 34 local p3="/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION" |
al@19790 | 35 |
al@19790 | 36 touch "$1/etc/sgml/catalog" |
al@19790 | 37 chroot "$1/" install-catalog --remove $p1 $p3/catalog >/dev/null |
al@19790 | 38 chroot "$1/" install-catalog --remove $p1 $p3/common/catalog >/dev/null |
al@19790 | 39 chroot "$1/" install-catalog --remove $p2 $p1 >/dev/null |
al@19790 | 40 } |
al@19790 | 41 |
al@19790 | 42 post_install() { |
al@19790 | 43 local p1="/etc/sgml/dsssl-docbook-stylesheets.cat" |
al@19790 | 44 local p2="/etc/sgml/sgml-docbook.cat" |
al@19790 | 45 local p3="/usr/share/sgml/docbook/dsssl-stylesheets-$VERSION" |
al@19790 | 46 |
al@19790 | 47 # Remove the catalog items prior to upgrading |
al@19790 | 48 [ -e "$1$p1" -a -e "$1$p2" ] && pre_remove |
al@19790 | 49 |
al@19790 | 50 touch "$1/etc/sgml/catalog" "$1$p1" "$1$p2" |
al@19790 | 51 chroot "$1/" install-catalog --add $p1 $p3/catalog >/dev/null |
al@19790 | 52 chroot "$1/" install-catalog --add $p1 $p3/common/catalog >/dev/null |
al@19790 | 53 chroot "$1/" install-catalog --add $p2 $p1 >/dev/null |
al@19790 | 54 } |