You are not logged in.

#1 2005-02-11 22:23:41

mbahamonde
Member
From: Germantown, MD
Registered: 2005-02-11
Posts: 15

Updated docbook-xml

Hi,
I just noticed that the current docbook-xml package, is pretty old-dated (Version 4.1.2). Consider that the latest version is 4.4.
I tried building myself a package for the latest docbook-xml release (4.4), but I noticed that it lacks from a build system, so you have to do it yourself. On the other side, docbook-xml 4.1.2, does have a build system, I guess that's why it's still on current.
I did a package myself, but I don't know if it's ok nor if it will work.
The PKGBUILD is:

pkgname=docbook-xml
pkgver=4.4
pkgrel=1
pkgdesc="A widely used XML scheme for writing documentation and help"
url="http://scrollkeeper.sourceforge.net/docbook.shtml"
depends=('libxml2')
source=(http://docbook.org/xml/4.4/docbook-xml-4.4.zip)

build() {
  mkdir /usr/share/xml/docbook/xml-dtd-4.4
  cd $startdir/src/
  cp -r * /usr/share/xml/docbook/xml-dtd-4.4/
  chmod 755 /usr/share/xml/docbook/xml-dtd-4.4/*
  chmod 755 /usr/share/xml/docbook/xml-dtd-4.4/ent/*

}

Greetings.

Offline

#2 2005-02-11 23:01:44

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Updated docbook-xml

Your PKGBUILD is not correct.  The files should be placed in $startdir/pkg not directly in your system, otherwise your package will be empty. The md5sum are missing.  Here is a corrected version:

pkgname=docbook-xml 
pkgver=4.4 
pkgrel=1 
pkgdesc="A widely used XML scheme for writing documentation and help" 
url="http://scrollkeeper.sourceforge.net/docbook.shtml" 
depends=('libxml2') 
source=(http://docbook.org/xml/4.4/docbook-xml-4.4.zip) 
md5sums=('cbb04e9a700955d88c50962ef22c1634')

build() { 
  cd $startdir/src/
  mkdir -p $startdir/pkg/usr/share/xml/docbook/xml-dtd-4.4 
  cp -r * $startdir/pkg/usr/share/xml/docbook/xml-dtd-4.4/ 
  chmod 755 $startdir/pkg/usr/share/xml/docbook/xml-dtd-4.4/* 
  chmod 755 $startdir/pkg/usr/share/xml/docbook/xml-dtd-4.4/ent/* 
}

Offline

#3 2005-02-11 23:10:27

mbahamonde
Member
From: Germantown, MD
Registered: 2005-02-11
Posts: 15

Re: Updated docbook-xml

Hi Snowman,
I just made those changes to my PKGBUILD. Thanks a lot smile
Now, I would like to know if the procedure the script follows, is OK(i'm not sure if that's the correct install procedure), and if you have to do some export so the system will know were to lookup for the docbook-xml files if required.

Greetings.

Offline

#4 2005-02-11 23:58:08

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Updated docbook-xml

I don't think that it will work.  The "official" Arch PKGBUILD uses the docbook sources from the scrollkeeper website where an installation script has been included.  This is probably why Arch is still at version 4.1.2.  The choices are to stay at 4.2.1 and wait for the official upgrade or to modify the installation script.

Offline

#5 2005-02-12 00:01:21

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Updated docbook-xml

mbahamonde wrote:

[...]
I did a package myself, but I don't know if it's ok nor if it will work.

=> test it, before posting to the forums!


The impossible missions are the only ones which succeed.

Offline

Board footer

Powered by FluxBB