You are not logged in.

#1 2005-02-05 18:14:18

MaceM
Member
From: Austria
Registered: 2003-11-26
Posts: 47

[office] antiword - converts the binary files from Word

Antiword converts the binary files from Word 2, 6, 7, 97, 2000, 2002 and 2003 to plain text and to PostScript or PDF.

# Contributor Merk Matthias <macem@chello.at>
pkgname=antiword
pkgver=0.36.1
pkgrel=1
pkgdesc="Antiword is a free MS Word reader for Linux and RISC OS. Antiword converts the binary files from Word 2, 6, 7, 97, 2000, 2002 and 2003 to plain text and to PostScript or PDF"
url="http://www.winfield.demon.nl/"
license="GPL"
source=($url/linux/$pkgname-$pkgver.tar.gz)
md5sums=(d46107219f4afaee658647a49dc45ed9)

build() {
  cd $startdir/src/$pkgname-$pkgver
  make all || return 1
  make DESTDIR=$startdir/pkg GLOBAL_INSTALL_DIR=/usr/bin global_install 
}

Usage Examples:

antiword testdoc > test.txt

Converts testdoc.doc into a simple textfile.

antiword -i 0 -p a4 testdoc.doc > test.ps

Converts testdoc.doc into a A4 sized postscript file with images.

antiword -a a4 testdoc.doc > test.pdf

Converts testdoc.doc into a Adobe PDF file.

View antiword -h for all switches.

Offline

#2 2005-02-05 19:30:52

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

Re: [office] antiword - converts the binary files from Word

is there no "make install" available?


The impossible missions are the only ones which succeed.

Offline

#3 2005-02-05 21:53:34

MaceM
Member
From: Austria
Registered: 2003-11-26
Posts: 47

Re: [office] antiword - converts the binary files from Word

there is, but it installs to the users bin and antiword directories.
i'm not very familiar with makefiles, i couldn't find a other way to install the files globally.

Offline

#4 2005-02-05 22:10:54

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

Re: [office] antiword - converts the binary files from Word

MaceM wrote:

there is, but it installs to the users bin and antiword directories.
i'm not very familiar with makefiles, i couldn't find a other way to install the files globally.

use the DESTDIR variable :

make DESTDIR=$startdir/pkg global_install

The impossible missions are the only ones which succeed.

Offline

#5 2005-02-05 22:31:15

MaceM
Member
From: Austria
Registered: 2003-11-26
Posts: 47

Re: [office] antiword - converts the binary files from Word

updated the PKGBUILD.

thanx much dp!

Offline

#6 2005-02-05 22:34:16

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

Re: [office] antiword - converts the binary files from Word

MaceM wrote:

updated the PKGBUILD.

thanx much dp!

gern gscheh ;-)


The impossible missions are the only ones which succeed.

Offline

#7 2005-02-06 16:51:38

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: [office] antiword - converts the binary files from Word

since default arch install does not have /usr/local/bin in the path the PKGBULD should be fixed to install binaries in /usr/bin.

make DESTDIR=$startdir/pkg GLOBAL_INSTALL_DIR=/usr/bin global_install

thanks

Offline

#8 2005-02-07 16:39:28

MaceM
Member
From: Austria
Registered: 2003-11-26
Posts: 47

Re: [office] antiword - converts the binary files from Word

updated, thx!

Offline

Board footer

Powered by FluxBB