You are not logged in.
If anyone is up to packaging writer2latex. It seems a little complex for my first solo PKGBUILD. Also, if possible, it needs to be compatible with Java 1.5 for use using gcj.
Offline
Hello,
here is a PKGBUILD
# Contributor: Stefan Husmann <stefan.husmann@t-systems.com>
pkgname=writer2latex
pkgver=05
pkgrel=1
pkgdesc="Converter for OO-Writer-documents to LaTeX"
arch=('i686')
url="http://www.hj-gym.dk/~hj/writer2latex"
license=('LGPL')
depends=('jdk' 'openoffice-base-devel')
makedepends=('apache-ant>=1.5' 'patch')
source=(http://www.hj-gym.dk/~hj/writer2latex/$pkgname$pkgver.zip build.xml.patch)
md5sums=('aaff584834819cf8de9cf85d1f5280c1' '436894c899dd085ca39974e73e360470')
build() {
cd $startdir/src/$pkgname$pkgver
patch build.xml ../build.xml.patch
sed -i 's+$HOME+/opt+' w2l
ant all
mkdir -p $startdir/pkg/usr/bin
mkdir $startdir/pkg/opt/
install -Dm755 $startdir/src/$pkgname$pkgver/w2l $startdir/pkg/usr/bin
mv $startdir/src/writer2latex05 $startdir/pkg/opt/
}
and a patchfile.
11c11
< <property name="OFFICE_HOME" location=""/>
---
> <property name="OFFICE_HOME" location="/opt/openoffice-dev"/>
They were not tested very hard. Please change the dependency and the last line in the patchfile, if you use openoffice-base instead of openoffice-base-devel.
Offline
Thank you very much. It seems to work nicely.
Offline
I removed all references to OpenOffice before the previous post and built it from there... without the patch. I think that you should add this to AUR..
Last edited by skottish (2007-12-08 06:26:09)
Offline
I removed all references to OpenOffice before the previous post and built it from there... without the patch. I think that you should add this to AUR..
Thank you! Did you test the Integration in Open-Office? I do not use OpenOffice so I did not test it.
Offline
Thank you! Did you test the Integration in Open-Office? I do not use OpenOffice so I did not test it.
No I didn't. I'm trying to learn LyX (then Latex) and decided that having OO around was going to be in the way.
Last edited by skottish (2007-12-09 00:08:36)
Offline
Stefan Husmann wrote:Thank you! Did you test the Integration in Open-Office? I do not use OpenOffice so I did not test it.
No I didn't. I'm trying to learn LyX (then Latex) and decided that having OO around was going to be in the way.
It is in the AUR now. I took away jdk-dependency and put in JRE-dependency instead. It is sufficient.
I do not use LyX, too. It would be interesting to know if the writer2latex-output can be imported by LyX.
Offline
It would be interesting to know if the writer2latex-output can be imported by LyX.
Not only does it work, there's a GUI option for it under import.
Offline