updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / docbook2odf / PKGBUILD
blobcdeff817983baf1d969e6ddeda50b2b8abe70ca3
1 # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
2 pkgname=docbook2odf
3 pkgver=0.244
4 pkgrel=2
5 pkgdesc="toolkit that automaticaly converts DocBook to OASIS OpenDocument"
6 arch=(i686 x86_64)
7 url="http://open.comsultia.com/docbook2odf/"
8 license=('GPL2')
9 depends=('libxslt' 'perl-xml-libxslt' 'zip' 'perl-archive-zip')
10 makedepends=()
11 provides=('docbook2odf')
12 conflicts=()
13 replaces=()
14 backup=()
15 install=
16 source=(http://open.comsultia.com/docbook2odf/dwn/${pkgname}-${pkgver}.tar.gz)
17 md5sums=('3b285dc4d6298beb12818a350776751f')
19 noextract=()
20 build() {
21         src=$startdir/src/docbook2odf-${pkgver}
22         dst=$startdir/pkg
23         mkdir -p "$dst/usr/share/docbook2odf/examples"
24         mkdir -p "$dst/usr/bin"
25         mkdir -p "$dst/usr/share/applications"
26         mkdir -p "$dst/usr/share/man/man1"
27         install -m0644 $src/bindings/desktop/*.desktop $dst/usr/share/applications
28         install -m0644 $src/docs/docbook2odf.1 $dst/usr/share/man/man1/
29         install -m0644 $src/examples/* $dst/usr/share/docbook2odf/examples
30         install -m0755 $src/utils/docbook2odf $dst/usr/bin
31         dst=$dst/usr/share/docbook2odf/xsl
32         mkdir -p $dst/document-content
33         install -m0644 $src/xsl/* $dst/
34         install -m0644 $src/xsl/document-content/* $dst/document-content/
35         mkdir -p $dst/document-styles
36         install -m0644 $src/xsl/document-styles/* $dst/document-styles/
37         mkdir -p $dst/overlay
38         install -m0644 $src/xsl/overlay/* $dst/overlay/
39         mkdir -p $dst/common
40         install -m0644 $src/xsl/common/* $dst/common/